Abstract
Constructor for initializing a base transaction request.
Optional object containing properties to initialize the transaction request.
List of inputs
Optional
maturityBlock until which tx cannot be included
The maximum fee payable by this transaction using BASE_ASSET.
List of outputs
Optional
tipGas price for transaction
Abstract
typeType of the transaction
Optional
witnessThe maximum amount of witness data allowed for the transaction
List of witnesses
Helper function to add an external signature to the transaction.
The transaction with the signature witness added.
Adds a change output to the transaction.
Address of the owner.
Asset ID of coin.
Adds a single coin input to the transaction and a change output for the related assetId, if one it was not added yet.
Coin resource.
Adds a coin output to the transaction.
Address of the owner.
Amount of coin.
Asset ID of coin.
Adds multiple coin outputs to the transaction.
Address of the destination.
Quantities of coins.
Adds a single message input to the transaction and a change output for the asset against the message
Message resource.
Adds a single resource to the transaction by adding a coin/message input and a change output for the related assetId, if one it was not added yet.
The resource to add.
This transaction.
Adds multiple resources to the transaction by adding coin/message inputs and change outputs from the related assetIds.
The resources to add.
This transaction.
Funds the transaction with fake UTXOs for each assetId and amount in the quantities array.
CoinQuantity Array.
The base asset to fund the transaction.
Optional
resourcesOwner: AbstractAddressProtected
getGets the change outputs for a transaction.
The change outputs.
Gets the coin inputs for a transaction.
The coin inputs.
Gets the coin outputs for a transaction.
The coin outputs.
Retrieves an array of CoinQuantity for each coin output present in the transaction. a transaction.
CoinQuantity array.
Abstract
getAbstract
toUpdates an existing witness without any side effects.
The index of the witness to update.
The new witness.
Updates the witness for a given owner and signature.
The address to get the coin input witness index for.
The signature to update the witness with.
Static
get
Abstract class to define the functionalities of a transaction request transaction request.