Call.kv_parameters()
Returns the arguments of the call in key/value format
return someFuncWithManyInputs({a: address(0), b: true, c: "c", x: 1, y: 2, z: 3});Query Example
from glider import *
def query():
instructions = Instructions().external_calls().exec(1)
for instruction in instructions:
for call in instruction.get_components():
if isinstance(call, Call):
for arg, val in call.kv_parameters():
print(arg.source_code(), val.expression)
return instructionsExample Output

Last updated