Skip to main content

starknet_getNonce RPC Method

Get the nonce associated with the given address in the given block.

Updated on
Mar 18, 2024

Parameters

block_id
string
REQUIRED

The hash of the requested block, the block number (height) of the requested block, or a block tag (latest, pre_confirmed, or l1_accepted)

contract_address
string
REQUIRED

The address of the contract whose nonce we're seeking

Returns

result
string

The contract's nonce at the requested state

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free