eth_getTransactionCount - Ethereum

eth_getTransactionCount. Returns the number of transactions sent from an address

eth_getTransactionCount - ethereum [Value: 11CU]
Returns the number of transactions sent from an address.
Use cases

Use cases

  • Retrieve total transactions count from specific address
  • Verify account activity by counting transactions
  • Audit the number of sent transactions
Constraints

Constraints

  • Requires valid Ethereum address input
  • Node synchronization with blockchain required.
  • Depends on the latest blockchain state.
Get started
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key

Language

Request
Examples
curl https://eth.drpc.org \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"method":"eth_getTransactionCount","params":["0x8D97689C9818892B700e27F316cc3E41e17fBeb9", "latest"],"id":1,"jsonrpc":"2.0"}'
 '
 
Copy
Response
200
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x31"
}
Copy

Request params

idinteger
jsonrpcstring
methodstring
Parametersarray of strings
array of strings
addressstring
The address from which the transaction count to be checked
blockNumberstring
Either the hex value of a block number OR a block hash OR One of the following block tag:
  • latest [default] - the blockchain's most recent block
  • earliest - the first or genesis block
  • pending - transactions broadcasted but not yet included in a block

Response

200
The integer of the number of transactions sent from an address encoded as hexadecimal.

Response params

object
idinteger
jsonrpcstring
resultarray_of_objects