starknet_getNonce
Starknet node API
starknet_getNonce | Starknet
Starknet API method that returns the nonce for a given account. starknet_getNonce JSON-RPC method available on the Starknet blockchain via Chainstack.
POST
starknet_getNonce
Documentation Index
Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
Use this file to discover all available pages before exploring further.
Starknet OpenRPC specFor the latest version of the publicly maintained OpenRPC spec, see the Starknet specs GitHub repo.
Get your own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.
Parameters
address— the string of the address of the account.
Response
result— the nonce of the account, represented as a hexadecimal string.
Use case
A practical use case forstarknet_getNonce is to retrieve the nonce for an account before sending a transaction. The nonce is an important factor in transactions, as it determines the order in which the network processes transactions from a given account. For example, if an account has a nonce of 10, the next transaction sent from that account should include a nonce of 11 to ensure that it is processed after all previous transactions.
Deprecated feeder gateway method
The feeder gateway was deprecated on December 11, 2023. Example of the call you had to make to the feeder gateway before the deprecation:Shell
Last modified on May 18, 2026