starknet_chainId
Return the currently configured StarkNet chain id
Return the currently configured StarkNet chain id
Parameters
none
Returns
The chain id the node is connected to
Example
Request
curl https://starknet-mainnet.blastapi.io/<project-id>
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"starknet_chainId","params":[],"id":0}'
Result
{
"jsonrpc": "2.0",
"result": "0x534e5f4d41494e",
"id": 0
}