Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 540 Bytes

File metadata and controls

29 lines (21 loc) · 540 Bytes
description Returns the number of the most recent block.

eth_blockNumber

Parameters:

None

Returns:

QUANTITY - integer of the current block number the client is on.

Example:

{% code overflow="wrap" %}

// Request
curl https://conflux-espace.blockpi.network/v1/rpc/your-rpc-key -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'

// Result
{
    "jsonrpc": "2.0",
    "result": "0x5815f6f",
    "id": 1
}

{% endcode %}