22

Besides the regular and very common CALL, the Ethereum Virtual Machine has the STATICCALL opcode. In which ways does it differ from the regular CALL?

Edit: This is not a duplicate because this question is about STATICCALL, that question is not!

2

2 Answers 2

12

Additionally,

Since byzantium staticcall can be used as well. This is basically the same as call, but will revert if the called function modifies the state in any way.

5

https://eips.ethereum.org/EIPS/eip-214

STATICCALL functions equivalently to a CALL, except it takes only 6 arguments (the “value” argument is not included and taken to be zero), and calls the child with the STATIC flag set to true for the execution of the child. Once this call returns, the flag is reset to its value before the call.

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.