eth_blockNumber
Returns the current "latest" block number.
Example
curl https://bsc-<network>.web3api.com/v1/YOUR-API-KEY
-X POST
-H "Content-Type: application/json"
-d "{\"jsonrpc\":\"2.0\",\"method\":\"eth_blockNumber\",\"params\": [],\"id\":1}"
curl -X POST 'https://bsc-<network>.web3api.com/v1/YOUR-API-KEY' \
-H 'Content-Type: application/json' \
--data-raw '{"jsonrpc":"2.0","method":"eth_blockNumber","params": [],"id":1}'
Result Fields
BLOCK NUMBER
- A hex code of an integer representing the current block number the client is on.
Body
{
"jsonrpc":"2.0",
"id":1,
"result":"0x6cbb40"
}