This question has probably been already answered somewhere else but I didn't find anything on the internet so I'm asking here.
I wonder how clients such as Geth query the blockchain to get specific information like a transaction or some address' balance. If you search by transaction hash you can get anything you're looking for in a couple of seconds, but how does the client actually fetch data from the blockchain? I know Ethereum is backed by LevelDB, but I still don't get how it is possible to skim through the entire blockchain is such little time.
Maybe I'm getting something wrong, thanks in advace!

1 Answer 1


I think this article is going to help for what you looking for.

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.