• 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

    Returns ReturnType<Node["getTransactionByHash"]>

    The transaction as it was mined