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:
curl -H "content-type: application/json" -X POST \
--data '{"id":0,"jsonrpc":"2.0","method":"eth_blockNumber","params":[]}' \
https://eth.blockscout.com/api/eth-rpc
Optional API key for increased rate limits. Without a key: 5 req/s shared. With a key: 10 req/s dedicated.
"your_api_key_here"
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