Skip to main content

starknet_blockHashAndNumber RPC Method

Get the most recent accepted block hash and number.

Updated on
Mar 18, 2024

starknet_blockHashAndNumber RPC Method

Parameters

This method does not accept any parameters

Returns

result
string
The result object with the following fields:
block_hash
string
The latest block hash
block_number
integer
The latest block number
Request
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free