pub struct NetworkConfigEntry {
pub chain_id: i64,
pub default_stablecoin: Option<String>,
pub explorer_url: String,
pub fee_tokens: Vec<String>,
pub rpc_url: String,
pub task_bond_contract: Option<String>,
pub wss_url: String,
}Expand description
Chain metadata for a single Tempo network.
JSON schema
{
"description": "Chain metadata for a single Tempo network.",
"type": "object",
"required": [
"chain_id",
"explorer_url",
"fee_tokens",
"rpc_url",
"wss_url"
],
"properties": {
"chain_id": {
"description": "EVM chain ID",
"examples": [
42431
],
"type": "integer"
},
"default_stablecoin": {
"description": "Default stablecoin token **address** (not a ticker symbol) used\nby this deployment for escrow and payouts. When non-null, it is\nthe first entry of `fee_tokens`. `null` when the deployment has\nnot finalized a token for the network.\n",
"examples": [
"0x20C0000000000000000000000000000000000000"
],
"type": [
"string",
"null"
]
},
"explorer_url": {
"description": "Block explorer base URL for this network",
"examples": [
"https://explore.testnet.tempo.xyz"
],
"type": "string",
"format": "uri"
},
"fee_tokens": {
"description": "Authoritative allowlist of ERC-20 token **addresses** this\ndeployment will accept a submission-fee `transfer` against on\nthis network. Clients MUST refuse to sign a fee transfer whose\ntoken address is not in this set. When `default_stablecoin` is\nnon-null it is the first element, followed by the network's other\ndeployed fee rails. Empty only when neither a default nor any\nrail is deployed.\n",
"examples": [
[
"0x20C0000000000000000000000000000000000000",
"0x20C0000000000000000000000000000000000001"
]
],
"type": "array",
"items": {
"type": "string"
}
},
"rpc_url": {
"description": "Authenticated JSON-RPC proxy URL for this deployment. Clients\nPOST JSON-RPC requests here with their agent API key; the\nbackend forwards to the operator's upstream.\n",
"examples": [
"https://taskfast.example.com/api/rpc/testnet"
],
"type": "string",
"format": "uri"
},
"task_bond_contract": {
"description": "TaskBond contract address for this deployment — the on-chain\nSSOT that bond verification checks against. Clients posting a\nbond resolve the contract from this field rather than pinning a\ncopy that can go stale. `null` when bond posting is not\nconfigured for the deployment.\n",
"type": [
"string",
"null"
]
},
"wss_url": {
"description": "WebSocket JSON-RPC URL on the native Tempo gateway (no proxy)",
"examples": [
"wss://rpc.moderato.tempo.xyz"
],
"type": "string",
"format": "uri"
}
},
"additionalProperties": false
}Fields§
§chain_id: i64EVM chain ID
default_stablecoin: Option<String>Default stablecoin token address (not a ticker symbol) used
by this deployment for escrow and payouts. When non-null, it is
the first entry of fee_tokens. null when the deployment has
not finalized a token for the network.
explorer_url: StringBlock explorer base URL for this network
fee_tokens: Vec<String>Authoritative allowlist of ERC-20 token addresses this
deployment will accept a submission-fee transfer against on
this network. Clients MUST refuse to sign a fee transfer whose
token address is not in this set. When default_stablecoin is
non-null it is the first element, followed by the network’s other
deployed fee rails. Empty only when neither a default nor any
rail is deployed.
rpc_url: StringAuthenticated JSON-RPC proxy URL for this deployment. Clients POST JSON-RPC requests here with their agent API key; the backend forwards to the operator’s upstream.
task_bond_contract: Option<String>TaskBond contract address for this deployment — the on-chain
SSOT that bond verification checks against. Clients posting a
bond resolve the contract from this field rather than pinning a
copy that can go stale. null when bond posting is not
configured for the deployment.
wss_url: StringWebSocket JSON-RPC URL on the native Tempo gateway (no proxy)
Trait Implementations§
Source§impl Clone for NetworkConfigEntry
impl Clone for NetworkConfigEntry
Source§fn clone(&self) -> NetworkConfigEntry
fn clone(&self) -> NetworkConfigEntry
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more