Hierarchy

Constructors

Properties

address: string
api: ApiPromise
balances: Balances = ...
contracts: Contracts = ...
extSigner?: ExtSigner
farms: QueryFarms = ...
keypair: KeyringPair
keypairType: KeypairType
kvStore: KVStore = ...
mnemonicOrSecret?: string
nodes: Nodes = ...
pricingPolicies: QueryPricingPolicies = ...
termsAndConditions: TermsAndConditions = ...
tftBridge: QueryTFTBridge = ...
tftPrice: QueryTFTPrice = ...
twins: Twins = ...
url: string
utility: Utility = ...
connections: Map<string, ApiPromise> = ...
lock: default = ...

Methods

  • Type Parameters

    • T

    Parameters

    • extrinsic: SubmittableExtrinsic<"promise", ISubmittableResult>
    • resultSections: string[] = []
    • resultEvents: string[] = []

    Returns Promise<T>

  • Type Parameters

    • T

    Parameters

    • extrinsic: SubmittableExtrinsic<"promise", ISubmittableResult>
    • resultSections: string[] = ...
    • resultEvents: string[] = []

    Returns Promise<T>

  • 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>

Generated using TypeDoc