Aurora Samples

Aurora nodes accept HTTP requests using the JSON-RPC 2.0 specification.

eth_blockNumber

Returns most recent block number

Request

curl https://aurora-mainnet-rpc.allthatnode.com/'YOUR-API-KEY' \
--request POST \
--header "Content-Type: application/json" \
--data '{ "jsonrpc":"2.0", "method":"eth_blockNumber","params":[],"id":1}'

Response

{
    "jsonrpc": "2.0",
    "result": "0x425fef3",
    "id": 1
}

Last updated