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} The same transaction builder