Register and show off your project at Ethereum QuickPitch and win $10,000. Apply now


eth_getTransactionCount RPC method

The API credit value for this method is 2 . To learn more about API credits and each method's value, visit the API Credits page.


  1. Address - The address you want a transaction count from.
  2. Quantity or Tag - Integer block number encoded as a hexadecimal, or the string 'latest', 'earliest' or 'pending'. For more information, see the default block parameter description in Ethereum's documentation.


  1. Result - Integer number of transactions sent from an address encoded as a hexadecimal.

Code Examples:

from web3 import Web3, HTTPProvider
w3 = Web3(HTTPProvider(''))
print (w3.eth.get_transaction_count('0x8D97689C9818892B700e27F316cc3E41e17fBeb9', 'latest'))
Ready to get started? Create a free account