Skip to main content
Version: Next

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

Address

The address to send the payment to.

value

Value

The value of the assets to send.

datum

Datum

(Optional) Optional datum to be associated with the paid assets.

Returns:

TxBuilder

{TxBuilder} The same transaction builder