Skip to main content

getTransactionCount

Callable


  • Type parameters

    Parameters

    Returns Promise<NumberTypes[ReturnFormat[number]]>

    The number of transactions sent from the provided address.

    web3.eth.getTransactionCount("0x407d73d8a49eeb85d32cf465507dd71d507100c1").then(console.log);
    > 1n

    web3.eth.getTransactionCount(
    "0x407d73d8a49eeb85d32cf465507dd71d507100c1",
    undefined,
    { number: FMT_NUMBER.NUMBER , bytes: FMT_BYTES.HEX }
    ).then(console.log);
    > 1