> For the complete documentation index, see [llms.txt](https://tutorial.neoline.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tutorial.neoline.io/reference/neo3-provider-api/getblockcount.md).

# getBlockCount

Gets the current block count of the connected Neo N3 network.

## Parameters

None.

## Returns

`Promise<number>`

## Errors

| Code    | Name        | Description                       |
| ------- | ----------- | --------------------------------- |
| `10008` | `RPC_ERROR` | The RPC server returned an error. |

## Example

### Request

```js
const blockCount = await provider.getBlockCount();
```

### Response

```js
5123456
```
