Quicknode RPC icon

Quicknode RPC

Interact with blockchain via Quicknode RPC

Get Block Number

AI-generated

Summary

Queries the current block number from the connected blockchain via Quicknode.

Inputs

None.

Output shape

A single record containing the block number in both hex and decimal formats.

The response includes result (hex), blockNumberDecimal (decimal integer), and metadata fields like method and network.

Examples

Example 1: Check the latest block height of the connected network.

No parameters required; defaults to the latest block.

Links

Discussion