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?


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.

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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