Hierarchy

Constructors

Properties

api: ApiPromise
balances: QueryBalances = ...
connectingLock: default = ...
contracts: QueryContracts = ...
farms: QueryFarms = ...
nodes: QueryNodes = ...
pricingPolicies: QueryPricingPolicies = ...
tftBridge: QueryTFTBridge = ...
tftPrice: QueryTFTPrice = ...
twins: QueryTwins = ...
url: string
connections: Map<string, ApiPromise> = ...

Methods

  • Checks if the given method exists within the specified section of the API events.

    Returns

    • True if the method exists within the section, false otherwise.

    Parameters

    • section: any

      The section of the API events to check.

    • method: any

      The method to check within the section.

    Returns boolean

  • Checks if the given section exists within the API events.

    Returns

    • True if the section exists within the API events, false otherwise.

    Parameters

    • section: string

      The section to check within the API events.

    Returns boolean

  • Returns Promise<void>

  • Returns Promise<void>

  • Returns Promise<void>

  • Listens for a specific event on the chain and resolves when the event matches the specified conditions.

    Returns

    • A promise that resolves with the event data when the event matches the conditions.

    Throws

    • If the section or method is not defined on the chain.

    Rejects

    If no response is received within the given time or if an error occurs during validation.

    Type Parameters

    • T

    Parameters

    • section: string

      The section of the event to listen for.

    • method: string

      The method of the event to listen for.

    • validator: validatorFunctionType

      The validator function to validate the event data.

    • timeoutInMinutes: number = 2

      The timeout value in minutes. Default is 2 minutes.

    Returns Promise<T>

  • Returns Promise<void>

  • Parameters

    • connection: boolean = true

    Returns Promise<void>

Generated using TypeDoc