Arguments.with_name()
Returns a list of arguments having specified name
with_name(arg_name: str, sensitivity: bool = False) -> List[
Argument
]
Query Example
from glider import *
def query():
functions = Functions().exec(1000)
for f in functions:
# Find arguments named "account"
for arg in f.arguments().with_name("account"):
print(arg.get_variable().data)
return []
Output Example
Example output of an Argument named "account":
{
'name': 'account',
'canonical_name': 'Datagold.queryAccountInfo(address,string).account',
'type': {
'type': 'elementary',
'name': 'address'
},
'memory_type': 'memory'
}
Last updated