Skip to content

eth_getTransactionCount


Return the number of transactions sent from an address at a particular block. This is equivalent to the nonce of this account at the end of the block.

Parameters

Address

The address of the account to query as a hex value.

Block ID

A block identifier, as specified by https://eips.ethereum.org/EIPS/eip-1898.

Example Request

curl -d '{
   "id": "1",
   "jsonrpc": "2.0",
   "method": "eth_getTransactionCount",
   "params": [ "0x97Ef723bC7e64cDD01E40B753c0C1f0d2A98Bf6D",  "latest"
]}' -H "Content-Type: application/json" -X POST "https://api.zq2-prototestnet.zilliqa.com/"

Example response

{"jsonrpc":"2.0","result":"0x0","id":"1"}

Arguments

Parameter Type Required Description
id string Required "1"
jsonrpc string Required "2.0"
method string Required "eth_getTransactionCount"
params array Requred [ address, block_number]