POST
/
95e61622bf6a8af293978377718e3b77
/
jsonrpc
/
eth_getTransactionCount
eth_getTransactionCount
curl --request POST \
  --url https://tron-mainnet.core.chainstack.com/95e61622bf6a8af293978377718e3b77/jsonrpc/eth_getTransactionCount \
  --header 'Content-Type: application/json' \
  --data '{
  "jsonrpc": "2.0",
  "method": "eth_getTransactionCount",
  "id": 1,
  "params": [
    "0x407d73d8a49eeb85d32cf465507dd71d507100c1",
    "latest"
  ]
}'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": "<string>"
}
TRON API method that returns the transaction count (nonce) for an account, providing an Ethereum-compatible interface for accessing TRON blockchain data.
Get you 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

  • jsonrpc — the JSON-RPC protocol version (always “2.0”)
  • method — the method name (always “eth_getTransactionCount”)
  • params — array containing method parameters
    • address — the account address to get the transaction count for
    • blockParameter — the block number in hexadecimal format or “latest”, “earliest”, “pending”
  • id — request identifier (number or string)

Response

  • jsonrpc — the JSON-RPC protocol version (“2.0”)
  • id — the request identifier that matches the request
  • result — the transaction count (nonce) as hex string

Use case

The jsonrpc eth_getTransactionCount method is used for:
  • Getting the correct nonce value for transaction creation through Web3 interfaces
  • Implementing transaction sequencing and avoiding nonce conflicts in dApps
  • Building transaction management systems that track account activity
  • Monitoring account transaction history and activity patterns

Body

application/json

Response

200 - application/json

Transaction count (nonce) for the account

The response is of type object.