0

I'm trying to write a script that will use a public Ethereum address and get a list of all the transaction hashes. I'm using web3.py but the methods I see for getting transaction information use the transaction hash as an input. I'm trying to get a list of hashes for a given address. Do I need to search through each block to see if the address in every single hash? I thought there'd be some simple way to get all the transactions in a single method. Does such a thing exist?

5
  • this question was answered many times
    – Nulik
    Commented Jul 20, 2021 at 22:14
  • 1
    @Nulik great! Can you tell me where? Commented Jul 20, 2021 at 22:30
  • geth doesn't provide such RPC request because building index of address->transactions is compute intense and database hungry. the database is large enough so no "good to have" features are included.
    – Nulik
    Commented Jul 21, 2021 at 11:29
  • Thank you. So do I have to search every transaction of every block to get all the transactions for an address? Commented Jul 21, 2021 at 12:17
  • correct .. . . .
    – Nulik
    Commented Jul 21, 2021 at 14:23

0

Your Answer

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

Browse other questions tagged or ask your own question.