cURL
curl --request POST \ --url https://api.gelato.cloud/rpc/{chainId} \ --header 'Content-Type: application/json' \ --header 'X-API-Key: <x-api-key>' \ --data ' { "id": 123, "jsonrpc": "2.0", "method": "eth_chainId" } '
{ "id": 1, "jsonrpc": "2.0", "result": "1" }
Returns the chainId of the network the bundler is serving.
chainId
Gelato API key for higher rate limits. This must be provided if sponsoring off-chain via Gas Tank.
Target network chain identifier.
Successful response