Event.source_code()

Returns the source code of the event.

source_code() → str

Query Example

from glider import *


def query():
  # Find contracts with the suffix "ERC20"
  contracts = Contracts().with_name_suffix("ERC20").exec(100)

  for c in contracts:
    for event in c.events().exec():
      # For each contract's event, print the event address
      print(event.source_code())

  return []

Output Example

Last updated