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

const blockCount = await provider.getBlockCount();

Response

5123456

最后更新于