⚠️Blast API (blastapi.io) ends Oct 31. Migrate to Dwellir and skip Alchemy's expensive compute units.
Switch Today →
Skip to main content

system_chain - JSON-RPC Method

Description

Returns the name of the chain the node is connected to.

Parameters

This method takes no parameters.

Returns

FieldTypeDescription
resultstringThe name of the chain

Request Example

{
"jsonrpc": "2.0",
"method": "system_chain",
"params": [],
"id": 1
}

Response Example

{
"jsonrpc": "2.0",
"result": "Bittensor",
"id": 1
}

Code Examples

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