Contracts.with_name_prefix()

Adds a filter to get contracts whose names have the given prefix.

with_name_prefix(prefix: str, sensitivity: bool = True) -> Contracts

Query Example

from glider import *

def query():

  main_contracts = Contracts().with_name_prefix("Access", sensitivity=True).exec(1)

  return main_contracts

Output Example

{
    {
        "contract": "0xfb10b1b0f68b3eaaca1ecd12a47cf7f55beabb98",
        "contract_name": "AccessControlRegistryAdminned"
    }
}

Last updated