Contracts.with_name_suffix()

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

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

Query Example

from glider import *

def query():

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

  return prefix_contracts

Output Example

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

Last updated