> For the complete documentation index, see [llms.txt](/llms.txt).

# `starknet_blockNumber`

Returns the block number of the most recent accepted block.

## Parameters[​](#parameters "Direct link to Parameters")

None.

## Returns[​](#returns "Direct link to Returns")

The latest block number.

## Example[​](#example "Direct link to Example")

Replace `<YOUR-API-KEY>` with an API key from your [Infura dashboard](https://app.infura.io/).

### Request[​](#request "Direct link to Request")

- curl

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

```

### Response[​](#response "Direct link to Response")

- JSON

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

```
