Broadcast Transaction

Broadcasts a transaction to the blockchain network.

Plugin Input

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

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

  /**
   * Enum of asset type identifiers
   */ 
  assetType: AssetTypes;

  /**
   * Raw transaction hex encoded
   */
  transactionHex: string;
}

Plugin Output

interface {
  /**
   * Error message as returned from the blockchain node, if any.
   * errorMessage and transactionId are mutually exclusive
   */
  errorMessage?: string;

  /**
   * Transaction id of broadcasted transaction, return of a transaction id also indicates 
   * successfull broadcast. This does not indicate the transaction will end on the blockchain
   * just that its initially accepted by the blockchain node.
   * errorMessage and transactionId are mutually exclusive
   */
  transactionId?: string;
}

Last modified April 8, 2021: Link updates in dev section (f51979c)