Contracts.with_function_name()

Adds a filter to get contracts that have a function with the given name.

with_function_name(name: str, sensitivity: bool = True) -> Contracts

Query Example

from glider import *

def query():
  contracts = Contracts().with_function_name('receive').exec(1)
  
  return contracts

Output Example

{
    {
        "contract": "0xd705c24267ed3c55458160104994c55c6492dfcf",
        "contract_name": "Token"
    }
}

Last updated