Skip to main content

eth_getTransactionCount

Returns the number of transactions sent from an address on Moonriver (the nonce).

Use Cases#

  • Transaction building - Get correct nonce for new transactions
  • Account analysis - Count total outgoing transactions
  • Nonce management - Handle pending transaction queues
  • Wallet operations - Prepare transactions for production-grade dApp testing, early feature deployment, and Kusama-based EVM applications

Parameters#

ParameterTypeRequiredDescription
addressDATAYes20-byte address
blockParameterQUANTITY|TAGYesBlock number or tag (pending for next nonce)

Request#

{
"jsonrpc": "2.0",
"method": "eth_getTransactionCount",
"params": [
"5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY",
"latest"
],
"id": 1
}

Code Examples#

curl -X POST  \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "eth_getTransactionCount",
"params": [
"5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQY",
"latest"
],
"id": 1
}'