BlockVision
DashboardDiscordTwitterWebsite
Search…
🧩
Welcome to BlockVision
🌟
Introduction
πŸ“š
How-To Guides
πŸ“–
Documentation
Chain APIs
🎨
Ethereum
Basic
eth_getBalance
eth_getCode
eth_getStorageAt
eth_getTransactionCount
eth_blockNumber
eth_getBlockTransactionCountByHash
eth_getBlockTransactionCountByNumber
eth_syncing
eth_getBlockByNumber
eth_call
eth_estimateGas
eth_gasPrice
eth_maxPriorityFeePerGas
eth_feeHistory
eth_protocolVersion
eth_sendRawTransaction
eth_chainId
web3_sha3
eth_getUncleCountByBlockHash
eth_getUncleCountByBlockNumber
eth_getUncleByBlockHashAndIndex
eth_getUncleByBlockNumberAndIndex
eth_getTransactionByHash
eth_getTransactionByBlockHashAndIndex
eth_getTransactionByBlockNumberAndIndex
eth_getTransactionReceipt
eth_getBlockByHash
eth_getLogs
Enhanced
ERC20
NFT
Portfolio
Price
dApp
🧲
Optimism
🌊
Arbitrum
🧊
Fantom
❄
Avalanche
πŸ“œ
BNB Chain
πŸ„
Polygon
πŸ‘“
Boba
Powered By GitBook
eth_blockNumber
Returns the number of the latest block

Parameters

Returns

QUANTITY(hex string) - integer of the current block number the client is on.

Example

Request

1
curl https://api.blockvision.org/v1/<api key> \
2
-X POST \
3
-H "Content-Type: application/json" \
4
-d '{
5
"jsonrpc": "2.0",
6
"method": "eth_blockNumber",
7
"params": [],
8
"id": 83
9
}'
Copied!

Result

1
{
2
"jsonrpc": "2.0",
3
"id": 83,
4
"result": "0xe2483f"
5
}
Copied!
Previous
eth_getTransactionCount
Next
eth_getBlockTransactionCountByHash
Last modified 1mo ago
Copy link
Contents
Parameters
Returns
Example
Request
Result