Skip to main content
Version: Next

tx.txbuilder.paylovelace

Home > @blaze-cardano/tx > TxBuilder > payLovelace

TxBuilder.payLovelace() method

Adds a payment in lovelace to the transaction output. This method ensures that the address is valid and the payment is added to the transaction output.

Signature:

payLovelace(address: Address, lovelace: bigint, datum?: Datum): TxBuilder;

Parameters

Parameter

Type

Description

address

Address

The address to send the payment to.

lovelace

bigint

The amount of lovelace to send.

datum

Datum

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

Returns:

TxBuilder

{TxBuilder} The same transaction builder