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 API key:
With API key:
Usage: Add apikey=YOUR_KEY to any request query string.
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 "2.0"
Must be "eth_blockNumber"
eth_blockNumber "eth_blockNumber"
Request identifier, echoed in the response
1
[]