getBlockHeight

getBlockHeight RPC Method

post
/

Returns the current block height of the node. Block height is the number of blocks that have been produced since the genesis block. This is different from slot numbers, as blocks represent confirmed batches of transactions.

Authorizations
AuthorizationstringOptional

Authorization header for API key authentication.

Example:

Authorization: your-api-key-here
Body
jsonrpcstring · enumRequired

JSON-RPC protocol version

Example: 2.0Possible values:
idone ofRequired

Request identifier that will be returned in the response

Example: 1
stringOptional
or
numberOptional
methodstring · enumRequired

The RPC method name

Example: getBlockHeightPossible values:
Responses
chevron-right
200

Successful Response

application/json

RPC response containing the current block height

jsonrpcstring · enumRequired

JSON-RPC protocol version

Example: 2.0Possible values:
idone ofRequired

Request identifier matching the original request

Example: 1
stringOptional
or
numberOptional
resultinteger · int64Optional

The current block height of the node. This represents the number of blocks that have been produced since the genesis block. Block height is different from slot numbers - blocks represent confirmed batches of transactions, while slots are time intervals.

Example: 100000000
post
/

Last updated