This document describes the TOML format for configuration.
ChainID = '<id>'
[[Nodes]]
Name = 'primary'
URL = '<http url>'
APIKey = '<key>'ChainID = 'Ibiza-808' # Example
FeederURL = 'http://feeder.url' # Example
Enabled = true # Default
OCR2CachePollPeriod = '5s' # Default
OCR2CacheTTL = '1m' # Default
RequestTimeout = '10s' # Default
TxTimeout = '10s' # Default
ConfirmationPoll = '5s' # Default
FeeEstimationMaxAttempts = 5 # DefaultChainID = 'Ibiza-808' # ExampleChainID is the Starknet chain ID.
FeederURL = 'http://feeder.url' # ExampleFeederURL is required to get tx metadata (that the RPC can't)
Enabled = true # DefaultEnabled enables this chain.
OCR2CachePollPeriod = '5s' # DefaultOCR2CachePollPeriod is the rate to poll for the OCR2 state cache.
OCR2CacheTTL = '1m' # DefaultOCR2CacheTTL is the stale OCR2 cache deadline.
RequestTimeout = '10s' # DefaultRequestTimeout is the RPC client timeout.
TxTimeout = '10s' # DefaultTxTimeout is the timeout for sending txes to an RPC endpoint.
ConfirmationPoll = '5s' # DefaultConfirmationPoll is how often to confirmer checks for tx inclusion on chain.
FeeEstimationMaxAttempts = 5 # DefaultFeeEstimationMaxAttempts is the maximum number of retry attempts for fee estimation.
[[Nodes]]
Name = 'primary' # Example
URL = 'http://stark.node' # Example
APIKey = 'key' # ExampleName = 'primary' # ExampleName is a unique (per-chain) identifier for this node.
URL = 'http://stark.node' # ExampleURL is the base HTTP(S) endpoint for this node. Use an RPC 0.9 or 0.10.x URL (e.g. .../rpc/v0_10). RPC 0.8 is deprecated as of Starknet v0.14.3. Read-only contract calls use the "latest" block tag; TXM nonce/fee paths use "pre_confirmed" (the RPC 0.9+ replacement for deprecated "pending"). starknet.go v0.17.x implements JSON-RPC spec 0.9.0. Nodes reporting 0.10.x (including devnet-rs 0.8.x) log a version mismatch warning at connect time but remain usable; response-shape drift is only detected at runtime on affected RPC calls.
APIKey = 'key' # ExampleAPIKey Header is optional and only required for Nethermind RPCs