Get network configuration

Where everything lives on chain: which node to talk to, which block explorers to link people to, and the addresses of the contracts behind staking, deposits, the batch record, bridged collectibles, governance and network fees. Ask for these rather than writing them into your code. They differ between test and live, and an address can change when a contract is replaced. Open to everyone. No sign-in needed.

GET
/public/network/config

Response Body

application/json

application/json

application/json

curl -X GET "https://api.dual.network/public/network/config"
{
  "l2_rpc": "https://rpc.example-l2.network",
  "l2_explorer": "https://explorer.example-l2.network",
  "l3_explorer": "https://explorer.dual.network",
  "staking": "0x1111111111111111111111111111111111111111",
  "deposits": "0x2222222222222222222222222222222222222222",
  "batch_registry": "0x3333333333333333333333333333333333333333",
  "bridged_nfts": "0x4444444444444444444444444444444444444444",
  "dao": "0x5555555555555555555555555555555555555555",
  "fees_dispatcher": "0x6666666666666666666666666666666666666666"
}
{
  "code": 3,
  "message": "Key: 'limit' Error:Field validation for 'limit' failed on the 'lte' tag"
}
{
  "code": 13,
  "message": "internal error"
}