NodeSubmitError

scalus.cardano.node.NodeSubmitError
See theNodeSubmitError companion trait

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

case class ScriptFailure(message: String, scriptHash: Option[ScriptHash] = ..., logs: Seq[String] = ...) extends NodeSubmitError

Script execution failures

Script execution failures

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SubmitError
class Object
trait Matchable
class Any
Show all
case class TransactionExpired(message: String) extends NodeSubmitError

Transaction expired - validity window passed (maps to OutsideValidityInterval)

Transaction expired - validity window passed (maps to OutsideValidityInterval)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SubmitError
class Object
trait Matchable
class Any
Show all
case class UtxoNotAvailable(message: String, unavailableInputs: Set[TransactionInput] = ...) extends NodeSubmitError

UTXO inputs not available - already spent or never existed.

UTXO inputs not available - already spent or never existed.

This is the key error for handling race conditions where UTxOs become unavailable between collection and submission. Maps to Cardano ledger BadInputsUTxO errors.

Value parameters

message

the original error message

unavailableInputs

best-effort set of unavailable inputs (may be empty if parsing failed)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SubmitError
class Object
trait Matchable
class Any
Show all
case class ValidationError(message: String, errorCode: Option[String] = ...) extends NodeSubmitError

Other node validation errors (catch-all for unrecognized validation errors)

Other node validation errors (catch-all for unrecognized validation errors)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
trait SubmitError
class Object
trait Matchable
class Any
Show all
case class ValueNotConserved(message: String) extends NodeSubmitError

Value/balance errors - input/output value mismatch (maps to ValueNotConserved)

Value/balance errors - input/output value mismatch (maps to ValueNotConserved)

Attributes

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

Inherited and Abstract types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror