sdk.txbuilder.payassets
Home > @blaze-cardano/sdk > TxBuilder > payAssets
TxBuilder.payAssets() method
Adds a payment in assets to the transaction output. This method ensures that the address is valid and the payment is added to the transaction output.
Signature:
payAssets(address: Address, value: Value, datum?: Datum): TxBuilder;
Parameters
| Parameter | Type | Description | 
|---|---|---|
| address | The address to send the payment to. | |
| value | Value | The value of the assets to send. | 
| datum | (Optional) Optional datum to be associated with the paid assets. | 
Returns:
{TxBuilder} The same transaction builder