Skip to main content

starknet_blockNumber

Get the most recent accepted block number

Get the most recent accepted block number

Parameters

none

Returns

The latest block number

Example

Request

curl https://starknet-mainnet.blastapi.io/<project-id>
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"starknet_blockNumber","params":[],"id":0}'

Result

{
"jsonrpc": "2.0",
"result": 4504,
"id": 0
}