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

eth_chainId

Get chain ID on the Bittensor network.

Parameters

Varies by method. Please refer to the official Ethereum JSON-RPC: eth_chainId documentation for detailed parameter information.

Returns

The return value depends on the specific method being called.

Implementation Example

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

Response Example

{
"jsonrpc": "2.0",
"id": 1,
"result": "0x3b1"
}

Note: Chain ID 945 (0x3b1 in hexadecimal) identifies the Bittensor Subtensor EVM mainnet.


Need help? Contact our support team or check the Bittensor documentation.