Donate

scalus.cardano.txbuilder.TransactionBuilderStep.Donate
case class Donate(amount: Coin) extends TransactionBuilderStep

Donate ADA to the Cardano treasury (Conway donation, CDDL key 22).

May be set only once. The amount participates in value conservation, so the change output automatically shrinks by this amount during balancing.

Attributes

Throws
IllegalArgumentException

if amount is not positive

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product