Creates an instance CreateTransactionRequest
.
The initial values for the instance
Witness index of contract bytecode to create
List of inputs
Optional
maturityBlock until which tx cannot be included
The maximum fee payable by this transaction using BASE_ASSET.
List of outputs
Salt
List of storage slots to initialize
Optional
tipGas price for transaction
Type 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.
Get contract created outputs for the transaction.
An array of contract created transaction request outputs.
Converts the transaction request to a TransactionCreate
.
The transaction create object.
Updates 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
fromStatic
get
CreateTransactionRequest
provides functionalities for creating a transaction request that creates a contract.