Skip to main content

chainSpec_v1_chainName

Description#

Read static chain specification data such as chain name, ss58 properties, and genesis hash. Use this to configure clients (address format, token info) or verify you are talking to the expected network.

Returns the chain name from the runtime's ChainSpec.

Code Examples#

curl -X POST https://api-bittensor-mainnet.n.dwellir.com/YOUR_API_KEY \
+ -H 'Content-Type: application/json' \
+ -d '{"jsonrpc":"2.0","method":"chainSpec_v1_chainName","params":[],"id":1}'