0

How do ethereum nodes find all transactions associated with a certain address? Would the node have to iterate backwards through each block in the chain looking for transactions to or from the address? Or is transaction data stored in an easier to retrieve manner?

1 Answer 1

1

Indexing process

When you first start up a node, it will index all nodes from genesis onwards.

As part of this indexing process, it maintains a database of addresses and balances, among other things in this index, so that when it needs to know the balance of an address it will not have to go searching for it.

2
  • How big is this database at this point in time? Commented Apr 1, 2018 at 2:46
  • It's variable depending on the amount of data indexed, the indexing method, database format etc.
    – supakaity
    Commented Apr 1, 2018 at 3:15

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.