starknet_blockNumber - Get the most recent...
Get the most recent accepted block number
Get the most recent accepted block number
Request Parameters
This method accepts no parameters.
Response Body
The latest block number Latest block number (integer)
Errors
| Code | Message |
|---|---|
| 32 | There are no blocks |
Examples
curl -X POST https://api-starknet-mainnet.n.dwellir.com/YOUR_API_KEY \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "starknet_blockNumber",
"params": [],
"id": 1
}'