Contract.structs()

Returns the list of all structs of the contract.

structs() → Structs

Example query

from glider import *

def query():
  contracts = Contracts().exec(1, 20)

  for contract in contracts:
    structs = contract.structs().exec()
    for struct in structs:
      print(struct.name)

  return contracts

Example output

Last updated