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
{
"SignatureTypes": [<string>],
"IncomingWsPort": <integer>,
"SignEveryUpdate": <boolean>,
"PullBasedWsUrl": <string>,
"PullBasedWsSubscriptionRequest": <object>,
"ClockPeriod": <string>,
"DeltaCheckPeriod": <string>,
"ChangeThresholdPercent": <float>,
"StorkRegistryBaseUrl": <string>,
"StorkRegistryRefreshInterval": <string>,
"BrokerReconnectDelay": <string>,
"PublisherMetadataRefreshInterval": <string>,
"PublisherMetadataBaseUrl": <string>,
"PullBasedWsReconnectDelay": <string>,
"PullBasedWsReadTimeout": <string>,
}Configuration Fields
SignatureTypes
SignatureTypesType: Array of Strings
Description: Specifies the signature types to be used. Valid values are
"evm"and"stark".Example:
["evm"]Required: Yes
IncomingWsPort
IncomingWsPortType: Integer
Description: The port number on which the agent listens for incoming websocket connections.
Example:
5216Required: Conditional (required if
PullBasedWsUrlis not set)
SignEveryUpdate
SignEveryUpdateType: Boolean
Description: Enables signing and sending of every update received, bypassing clock and delta update logic.
Example:
trueRequired: No
PullBasedWsUrl
PullBasedWsUrlType: String
Description: The URL of an external websocket server used for pull-based updates.
Example:
"wss://example.com/ws"Required: Conditional (required if
IncomingWsPortis not set)
PullBasedWsSubscriptionRequest
PullBasedWsSubscriptionRequestType: Object
Description: The subscription request payload sent to the external websocket server.
Example:
{"type": "subscribe", "data": ["BTCUSD"]}Required: No
ClockPeriod
ClockPeriodType: String
Description: The interval for clock-based updates.
Default:
"500ms"Example:
"1s"Required: No
DeltaCheckPeriod
DeltaCheckPeriodType: String
Description: The interval for checking delta-based updates.
Default:
"10ms"Example:
"50ms"Required: No
ChangeThresholdPercent
ChangeThresholdPercentType: Float
Description: The percentage change required to trigger an update.
Default:
0.1Example:
1.5Required: No
StorkRegistryBaseUrl
StorkRegistryBaseUrlType: String
Description: The base URL for the Stork Registry.
Default:
"https://rest.jp.stork-oracle.network"Required: No
StorkRegistryRefreshInterval
StorkRegistryRefreshIntervalType: String
Description: The interval for refreshing the Stork Registry.
Default:
"10m"Example:
"15m"Required: No
BrokerReconnectDelay
BrokerReconnectDelayType: String
Description: The delay interval for reconnecting to the broker.
Default:
"5s"Required: No
PublisherMetadataRefreshInterval
PublisherMetadataRefreshIntervalType: String
Description: The interval for refreshing publisher metadata.
Default:
"1h"Required: No
PublisherMetadataBaseUrl
PublisherMetadataBaseUrlType: String
Description: The base URL for fetching publisher metadata.
Default:
"https://rest.jp.stork-oracle.network"Required: No
PullBasedWsReconnectDelay
PullBasedWsReconnectDelayType: String
Description: The delay interval for reconnecting to the pull-based websocket.
Default:
"5s"Required: No
PullBasedWsReadTimeout
PullBasedWsReadTimeoutType: String
Description: The timeout interval for reading from the pull-based websocket.
Default:
"10s"Required: No
Example config.json
config.json{
"SignatureTypes": ["evm"],
"IncomingWsPort": 5216,
"SignEveryUpdate": true,
"PullBasedWsUrl": "wss://example.com/ws",
"PullBasedWsSubscriptionRequest": {"type": "subscribe", "data": ["BTCUSD"]},
"ClockPeriod": "500ms",
"DeltaCheckPeriod": "10ms",
"ChangeThresholdPercent": 0.1,
"StorkRegistryBaseUrl": "https://rest.jp.stork-oracle.network",
"StorkRegistryRefreshInterval": "10m",
"BrokerReconnectDelay": "5s",
"PublisherMetadataRefreshInterval": "1h",
"PublisherMetadataBaseUrl": "https://rest.jp.stork-oracle.network",
"PullBasedWsReconnectDelay": "5s",
"PullBasedWsReadTimeout": "10s",
}Last updated