1

I'm trying to use ethers.js to find out how many transactions are recorded against a supplied EOA, and optionally, get a list of the txIDs.

I can't find a way in the docs to query an address for a list of its transactions.

Possible? Or do I have to use a service API from Etherscan or Alchemy to get this data.?

1 Answer 1

0

that's the nonce field of the account.

RPC function name eth_getTransactionCount

ethclient function name NonceAt()

there can be pending transactions at the moment you are querying so it is better to use PendingNonceAt() (function of the ethclient API (golang))

there is no way of getting tx hashes of an account without third party services, you can check Etherscan API for this

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.