1

I know that in the block is included the StateRoot of the state trie. Also, i know that the entire state trie is saved locally on disk for each node and periodically be updated based on new upcoming transactions. My question now is any way to iterate back, for example, in block(n-1) and find the balance of the state tie there? Or it's impossible because state trie keeps only the updated values?

1
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking.
    – Community Bot
    Mar 25, 2022 at 13:54

1 Answer 1

1

Archive nodes store the full historical states.

Full nodes may store the historical state a few blocks back.

More information about archive nodes here.

2
  • 1
    So if i understand correctly with Archive nodes we can retrieve the past account balances per block(historical state) for example, in block(n-1) and find the balance of the state tie there even if its an expensive operation am i right? Mar 26, 2022 at 9:48
  • That is correct @MixalisNavridis Mar 26, 2022 at 9:52

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.