Skip to main content
Version: 0.13.0

tx.txbuilder.setdonation

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

TxBuilder.setDonation() method

Sets the donation to the treasury in lovelace

Signature:

setDonation(donation: bigint): TxBuilder;

Parameters

Parameter

Type

Description

donation

bigint

The amount of lovelace to donate back to the treasury

Returns:

TxBuilder

{TxBuilder} The same transaction builder