This the multi-page printable view of this section. Click here to print.

Return to the regular view of this page.

Transaction Status

To keep track of transactions and their status (confirmations or in mem-pool).

Plugin Input

Please see heat-server-common/src/constants.ts for type definitions

interface {
  /**
   * Enum of blockchain identifiers
   */   
  blockchain: Blockchains;

  /**
   * Enum of asset or token types
   */   
  assetType: AssetTypes;

  /**
   * Address or public key
   */   
  addrXpub: string;

  /**
   * Unique transaction identifier
   */
  transactionId: string;
}

Public Output

interface {

  /**
   * Number of confirmations, returns 0 for unconfirmed transactions
   */
  confirmations: number;

  /**
   * In case of unconfirmed transactions this indicates if the transaction 
   * resides in the mem-pool or was rejected
   */
  isAccepted: boolean;  
}