Config JSON
This document describes the structure and usage of the config JSON file used by the Stork Publisher Agent.
Overview
The config.json
file contains non-secret configuration settings for the Publisher Agent.
JSON Structure
Configuration Fields
SignatureTypes
SignatureTypes
Type: Array of Strings
Description: Specifies the signature types to be used. Valid values are
"evm"
and"stark"
.Example:
["evm"]
Required: Yes
IncomingWsPort
IncomingWsPort
Type: Integer
Description: The port number on which the agent listens for incoming websocket connections.
Example:
5216
Required: Conditional (required if
PullBasedWsUrl
is not set)
SignEveryUpdate
SignEveryUpdate
Type: Boolean
Description: Enables signing and sending of every update received, bypassing clock and delta update logic.
Example:
true
Required: No
PullBasedWsUrl
PullBasedWsUrl
Type: String
Description: The URL of an external websocket server used for pull-based updates.
Example:
"wss://example.com/ws"
Required: Conditional (required if
IncomingWsPort
is not set)
PullBasedWsSubscriptionRequest
PullBasedWsSubscriptionRequest
Type: Object
Description: The subscription request payload sent to the external websocket server.
Example:
{"type": "subscribe", "data": ["BTCUSD"]}
Required: No
PullBasedAuth --
PullBasedAuth --
Type: String
Description: The authentication token or key used to access the pull-based websocket server.
Example:
"Bearer abc123"
Required: No
ClockPeriod
ClockPeriod
Type: String
Description: The interval for clock-based updates.
Default:
"500ms"
Example:
"1s"
Required: No
DeltaCheckPeriod
DeltaCheckPeriod
Type: String
Description: The interval for checking delta-based updates.
Default:
"10ms"
Example:
"50ms"
Required: No
ChangeThresholdPercent
ChangeThresholdPercent
Type: Float
Description: The percentage change required to trigger an update.
Default:
0.1
Example:
1.5
Required: No
StorkRegistryBaseUrl
StorkRegistryBaseUrl
Type: String
Description: The base URL for the Stork Registry.
Default:
"https://rest.jp.stork-oracle.network"
Required: No
StorkRegistryRefreshInterval
StorkRegistryRefreshInterval
Type: String
Description: The interval for refreshing the Stork Registry.
Default:
"10m"
Example:
"15m"
Required: No
BrokerReconnectDelay
BrokerReconnectDelay
Type: String
Description: The delay interval for reconnecting to the broker.
Default:
"5s"
Required: No
PublisherMetadataRefreshInterval
PublisherMetadataRefreshInterval
Type: String
Description: The interval for refreshing publisher metadata.
Default:
"1h"
Required: No
PublisherMetadataBaseUrl
PublisherMetadataBaseUrl
Type: String
Description: The base URL for fetching publisher metadata.
Default:
"https://rest.jp.stork-oracle.network"
Required: No
PullBasedWsReconnectDelay
PullBasedWsReconnectDelay
Type: String
Description: The delay interval for reconnecting to the pull-based websocket.
Default:
"5s"
Required: No
PullBasedWsReadTimeout
PullBasedWsReadTimeout
Type: String
Description: The timeout interval for reading from the pull-based websocket.
Default:
"10s"
Required: No
OracleId --
OracleId --
Type: String
Description: The 5 character unique identifier for the oracle.
Required: Yes
Example:
"oracl"
Example config.json
config.json
Last updated