Argument.data
Returns the internal data of the Argument
property
data
It contains the name, canonical_name, type, and memory_type of the Argument.
from glider import *
def query():
functions = Functions().with_arg_count(2).exec(100)
for f in functions:
for arg in f.arguments().list():
print(f"Argument: {arg.get_variable().data}")
return []
Output Example
In the query above, the data
property will return:
{
'name': 'recipient',
'canonical_name': 'IERC20.transfer(address,uint256).recipient',
'type': {
'type': 'elementary',
'name': 'address'
},
'memory_type': 'memory'
}
Last updated