Contracts.with_error_regex()

Adds a filter to get contracts that have an error whose name matches the given regex.

with_error_regex(regex: str) -> Contracts

Query Example

from glider import *

def query():
  contracts = Contracts().with_error_regex('^Err.*').exec(1)
  
  return contracts

Output Example

{
    {
        "contract": "0x423ce5282c460eed5fe0786b4d47d2c2a4ef3721",
        "contract_name": "IRiverV1"
    }
}

Last updated