Skip to main content

starknet_chainId RPC Method

Return the currently configured StarkNet chain id.

Updated on
Mar 18, 2024

Parameters

This method does not accept any parameters

Returns

result
string

The Starknet chain id, given in hex representation

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free