Contracts.name_suffix()

Adds a filter to get contracts that names have the given suffix.

name_suffix(suffix: str, sensitivity: bool = True) -> Contracts

Query Example

from glider import *

def query():

  prefix_contracts = Contracts().name_suffix("link", sensitivity=False).exec(1)

  return prefix_contracts

Output Example

{
    {
        "contract": "0xc8d60d8273e69e63eafc4ea342f96ad593a4ba10",
        "contract_name": "CalculationsChainlink"
    }
}

Last updated