getTransactionCount method
Gets the amount of transactions issued by the specified address
.
This function allows specifying a custom block mined in the past to get historical data. By default, BlockNum.current will be used.
Implementation
Future<int> getTransactionCount(
EthereumAddress address, {
BlockNum? atBlock,
}) {
final blockParam = _getBlockParam(atBlock);
return makeRPCCall<String>(
'eth_getTransactionCount',
[address.hex, blockParam],
).then((hex) => hexToInt(hex).toInt());
}