⚠️Blast API (blastapi.io) ends Oct 31. Migrate to Dwellir and skip Alchemy's expensive compute units.
Switch Today →
Skip to main content

system_accountNextIndex

Description

Return the next valid account nonce. Use to construct signed extrinsics and avoid “future proof” or “bad nonce” errors.

Returns the next valid transaction index (nonce) for an account.

Parameters

ParameterTypeRequiredDescription
accountIdstringYesHex-encoded AccountId (32 bytes typical); example uses ${S.accountId}

Code Examples

curl -X POST https://api-bittensor-mainnet.n.dwellir.com/YOUR_API_KEY \
+ -H 'Content-Type: application/json' \
+ -d '{"jsonrpc":"2.0","method":"system_accountNextIndex","params":["0x0000000000000000000000000000000000000000000000000000000000000000"],"id":1}'