Skip to main content
Version: Next

sdk.txbuilder.setdonation

Home > @blaze-cardano/sdk > 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