2

Will it be possible to get address state at a given block within smart contract execution logic?

Something like: block(10297202).(address('Ox...').balance)

I assume it's not possible currently due to:

  1. Miners do not hold the whole chain (In general).
  2. Computational power will be added to every block generation.
  3. Question regarding reading past events info in Solidity
user3652172
  • 419
  • 7
  • 14
  • 1
    Only archive nodes hold this information: https://ethereum.stackexchange.com/questions/84199/state-only-node/84200#84200 – Mikko Ohtamaa Jun 19 '20 at 17:56

1 Answers1

4

No, it is not possible in solidity. The EVM doesn't have an opcode that can return that value. The BALANCE opcode returns the current balance of an address.

Ismael
  • 30,570
  • 21
  • 53
  • 96