Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "connextclient/ConnextClient"

Index

Classes

Variables

Functions

Variables

Const MAX_AMOUNT

MAX_AMOUNT: number = Number.MAX_SAFE_INTEGER

Functions

Const waitForPreimageByHash

  • waitForPreimageByHash(client: SwapClient, expectedHash: string, errorTimeout?: number): Promise<string>
  • Waits for the preimage event from SwapClient for a specified hash

    Parameters

    • client: SwapClient

      the swap client instance to listen events from

    • expectedHash: string

      the expected hash of the payment

    • Default value errorTimeout: number = 89000

      optional maximum duration of time to wait for the preimage

    Returns Promise<string>

Generated using TypeDoc