AptosAptos Network's breakthrough technology and seamless user experience are now available on QuickNode.

Start building today!     


eth_getTransactionCount RPC Method

The eth_getTransactionCount EVM method is only supported on the Avalanche C-Chain.

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 - (optional) Integer block number encoded as a hexadecimal, or the string 'latest', 'earliest' or 'pending', see the default block parameter.


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

Code Examples:

To use the eth_getTransactionCount EVM method on the Avalanche C-Chain, ensure that the end of your URL includes ext/bc/C/rpc.

const ethers = require("ethers");
(async () => {
  const provider = new ethers.providers.JsonRpcProvider(
  const txCount = await provider.getTransactionCount(
Ready to get started? Create a free account