sdk.txbuilder.paylovelace
Home > @blaze-cardano/sdk > 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 | The address to send the payment to. | |
| lovelace | bigint | The amount of lovelace to send. | 
| datum | (Optional) Optional datum to be associated with the paid assets. | 
Returns:
{TxBuilder} The same transaction builder