Arguments.list()

Returns a list of all the arguments that are passed as parameters to the function.

list() -> List[Argument]

Example Query

from glider import *


def query():
  functions = Functions().exec(100)

  for f in functions:
    # list() converts the arguments into a list that we can iterate through
    for arg in f.arguments().list():
      print(f"Argument source code: {arg.get_variable().data}")

  return []

Example of a ERC721 transferFrom function with 3 arguments

ERC721.transferFrom(address from ,address to ,uint256 tokenId)

Output Example

Last updated