Instruction.is_new_contract()
Returns true if the instruction creates a new contract.
is_new_contract() -> bool
Query Example
from glider import *
def query():
ins = (
Functions()
.with_name("deploy")
.instructions()
.exec(100)
.filter(lambda x: x.is_new_contract())
)
return insWith 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