• Return transaction details if it is mined, fail otherwise. If the transaction has ttl specified then would wait till it leaves the mempool. Otherwise would fail if a specified amount of blocks were mined.

    Parameters

    • th: `th_${string}`

      The hash of transaction to poll

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

      Options

      • Optionalblocks?: number

        Number of blocks mined after which to fail if transaction ttl is not set

      • Optionalinterval?: number

        Interval (in ms) at which to poll the chain

      • onNode: Node

        Node to use

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

        Node to use

    Returns Promise<SignedTx>

    The transaction as it was mined