Docs

starknet_blockNumber - Get the most recent...

Get the most recent accepted block number

Get the most recent accepted block number

Request Parameters

Request

This method accepts no parameters.

Response Body

Response
resultOBJECT

The latest block number Latest block number (integer)

Errors

CodeMessage
32There are no blocks

Examples

Bash
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
  }'

On this page