Function waitForTxConfirm

  • Wait for transaction confirmation

    Parameters

    • txHash: `th_${string}`

      Transaction hash

    • options: { confirm?: number; onNode: Node } & { interval?: number; onNode: Node } & {
          _expectedMineRate?: number;
          _microBlockCycle?: number;
          onNode: Node;
      }

      Options

      • Optionalconfirm?: number

        Number of micro blocks to wait for transaction confirmation

      • onNode: Node

        Node to use

      • Optionalinterval?: number
      • onNode: Node

        Node to use

      • Optional_expectedMineRate?: number
      • Optional_microBlockCycle?: number
      • onNode: Node

        Node to use

    Returns Promise<number>

    Current Height