Portal
Search…
eth_getTransactionCount
Returns the number of transactions sent from given address at given time (block number)
1
web3.eth.getTransactionCount(address [, defaultBlock] [, callback])
Copied!

Parameters

    1.
    The address to get the numbers of transactions from.
    2.
    (optional) If you pass this parameter it will not use the default block set with web3.eth.defaultBlock. Pre-defined block numbers as "earliest", "latest" and "pending" can also be used.
    3.
    (optional) Optional callback, returns an error object as first parameter and the result as second.

Returns

The number of transactions sent from the given address.

Example

1
> web3.eth.getTransactionCount("0x063eBCD1dB02320814Acc0721e65f14b8755Ff41").then(console.log)
2
> 12
Copied!
Last modified 9mo ago
Copy link