0

Can contract find the nonce of EOA while executing?

Is there any way to make contract to check nonce of EOA while execution?

Thank you.

0

Contracts don't have access to the nonce data: https://ethereum.stackexchange.com/a/2702/31933

Therefore, by extension, contracts also don't have access to the nonce data of a random EOA.

Even if you gave the address of an EOA to a contract I don't think the contract could see/know almost anything of the address, definitely not its nonce information. The contract has access to address(EOAaddress).balance to check the Ether balance but I think that's about it.

Nonce information is mostly client-side metadata which can only be deduced outside the blockchain by checking the last used nonce.

| improve this answer | |
  • Thank you for your comment. – ikaop Jun 1 at 7:59

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.