Ethereum JSON-RPC endpoint
Single endpoint for all standard Ethereum JSON-RPC 2.0 methods. Send a POST request with a JSON body specifying the method and params.
Supported methods: eth_blockNumber, eth_getBalance, eth_getLogs, eth_gasPrice, eth_getTransactionByHash, eth_getTransactionReceipt, eth_chainId, eth_maxPriorityFeePerGas, eth_getTransactionCount, eth_getCode, eth_getStorageAt, eth_estimateGas, eth_getBlockByNumber, eth_getBlockByHash, eth_sendRawTransaction, eth_call
Example:
Authorizations
API key passed as a Bearer token in the Authorization header.
Path Parameters
The ID of the blockchain
Body
- eth_blockNumber
- eth_getBalance
- eth_getLogs
- eth_gasPrice
- eth_getTransactionByHash
- eth_getTransactionReceipt
- eth_chainId
- eth_maxPriorityFeePerGas
- eth_getTransactionCount
- eth_getCode
- eth_getStorageAt
- eth_estimateGas
- eth_getBlockByNumber
- eth_getBlockByHash
- eth_sendRawTransaction
- eth_call
Returns the latest block number in the chain in hexadecimal format.
JSON-RPC Method: eth_blockNumber
This endpoint uses the standard Ethereum JSON-RPC 2.0 format.
JSON-RPC version
"2.0"
Must be "eth_blockNumber"
eth_blockNumber "eth_blockNumber"
No parameters required
A client-defined identifier for this request. The server echoes it back unchanged in the response, so you can match responses to requests. This is especially useful when sending multiple calls in a batch. For single requests any value works — use any integer (e.g. 1) or string (e.g. "my-request"). Set to null if you do not need to correlate the response.
1