POST
/
bundlers
/
{chainId}
/
rpc
eth_chainId
curl --request POST \
  --url https://api.gelato.digital/bundlers/{chainId}/rpc \
  --header 'Content-Type: application/json' \
  --data '{
  "id": 123,
  "jsonrpc": "2.0",
  "method": "eth_chainId"
}'
{
  "id": 1,
  "jsonrpc": "2.0",
  "result": "1"
}

Path Parameters

chainId
number
required

Target network chain identifier.

Query Parameters

apiKey
string

Gelato API key for higher rate limits. This must be provided if sponsoring off-chain via Gas Tank.

Body

application/json
id
number
jsonrpc
string
default:2.0
method
string
default:eth_chainId

Response

Successful response

id
number
default:1
jsonrpc
string
default:2.0
result
string
default:1

chainId