Skip to content

eth_getTransactionCount

Returns the number of transactions sent from an address.

Parameters

  1. string - The address to get the transaction count for
  2. string - Integer block number, or the string "latest", "earliest" or "pending"

Example

["0xc94770007dda54cF92009BFF0dE90c06F603a09f", "latest"]

Returns

string

A hexadecimal string representing the number of transactions sent from this address.

Example

"0x1" // 1

Errors

CodeMessage
-32602Invalid address or block parameter