StructField.type

Returns the type of the struct field.

property type : Type

Query Example

from glider import *

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

  for struct in contracts[0].structs().exec():
    for struct_field in struct.fields:
      print(struct_field.type)

  return []

Example Output

[
  {
    "print_output": [
      "uint256",
      "uint256",
      "bool"
    ]
  }
]

Last updated