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

starknet_getNonce RPC Method

Parameters

block_id
string
REQUIRED
The hash of the requested block, the block number (height) of the requested block, or a block tag (latest or pending)
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