Add an AssetTransferInput to burn.
An array of either an AssetTransferInput or an Asset.
The AssetTransferTransaction, which is modified by adding them.
Add an AssetTransferInput to spend.
An array of either an AssetTransferInput or an Asset.
The AssetTransferTransaction, which is modified by adding them.
Add an AssetTransferOutput to create.
An array of either an AssetTransferOutput or an object that has amount, assetType and recipient values.
Get the asset address of an output.
An index indicating the output.
An asset address which is H256.
Get the output of the given index, of this transaction.
An index indicating an output.
An Asset.
Get the outputs of this transaction.
An array of an Asset.
Get the hash of an AssetTransferTransaction.
A transaction hash.
Get a hash of the transaction that doesn't contain the scripts. The hash is used as a message to create a signature for a transaction.
A hash.
Convert to RLP bytes.
Set a burn's lock script and an input's unlock script so that the burn become burnable.
An index indicating the burn to sign.
A TransactionSigner. Currently, P2PKH is available.
A promise that resolves when setting is done.
Set an input's lock script and an input's unlock script so that the input become spendable.
An index indicating the input to sign.
A TransactionSigner. Currently, P2PKH is available.
A promise that resolves when setting is done.
Convert to an object for RLP encoding.
Convert to an AssetTransferTransaction JSON object.
An AssetTransferTransaction JSON object.
Create an AssetTransferTransaction from an AssetTransferTransaction JSON object.
An AssetTransferTransaction JSON object.
An AssetTransferTransaction.
Generated using TypeDoc
Spends the existing asset and creates a new asset. Ownership can be transferred during this process.
An AssetTransferTransaction consists of:
All inputs must be valid for the transaction to be valid. When each asset types' amount have been summed, the sum of inputs and the sum of outputs must be identical. If an identical transaction hash already exists, then the change fails. In this situation, a transaction can be created again by arbitrarily changing the nonce.