Instruction.is_storage_write()
Returns True if the instruction is a storage write instruction, else returns False. A storage write instruction writes to the state variable of a contract
is_storage_write() -> bool
Query Example
from glider import *
def query():
return Instructions().exec(30).filter(lambda x: x.is_storage_write())With the Glider 1.0 update, calling the exec function returns an APIList[Instruction]. You can then use Instruction functions, which are applied to each element of the APIList[Instruction]
Output Example

Last updated