Event.arg_list()

Returns arguments' types of the event.

arg_list() β†’ List[str]

Example

from glider import *
def query():
  # Find contracts with an event called "Transfer"
  contracts = Contracts().with_event_name('Transfer').exec(100)

  transferEventsArgs = []
  for contract in contracts:
    for event in contract.events():
      if event.name == "Transfer":
        # For each "Transfer" event in every single contract, return its arguments
        transferEventsArgs.append(event.arg_list())

  return transferEventsArgs

Example output

[
  ["address", "address", "uint256"],
  ["address", "address", "uint256"],
  ...
]

Last updated