InsufficientFunds

scalus.cardano.txbuilder.TxBalancingError.InsufficientFunds
final case class InsufficientFunds(valueDiff: Value, minRequired: Long)

Insufficient funds to balance the transaction.

This error indicates that the transaction outputs (including fees) exceed what the inputs can provide. The valueDiff contains the full deficit including both ADA and native tokens.

When valueDiff has negative values, those represent the amounts needed:

  • Negative ADA means more lovelace is needed
  • Negative token amounts mean more of those tokens are needed

Value parameters

minRequired

minimum additional lovelace needed, accounting for minAda requirements on change outputs

valueDiff

the value difference (consumed - produced). Negative values indicate deficit.

Attributes

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product