post https://{network}.g.alchemy.com/starknet/version/rpc/{version}/
Return the currently configured Starknet chain id
Response
Return the currently configured Starknet chain id
xxxxxxxxxx
11curl --request POST \
--url https://starknet-mainnet.g.alchemy.com/starknet/version/rpc/v0_7/docs-demo \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "starknet_chainId"
}
'
Try It!
to start a request and see the response here! Or choose an example: