ExpiredStateException

class ExpiredStateException(message: String, assembledTransaction: AssembledTransaction<*>) : ContractException

Exception thrown when contract state has expired and needs restoration.

Soroban contracts store state on the ledger with a time-to-live (TTL). When state expires (is archived), it must be restored before the contract can be invoked.

To automatically restore state, set restore=true when calling AssembledTransaction.simulate, or manually call AssembledTransaction.restoreFootprint.

Constructors

Link copied to clipboard
constructor(message: String, assembledTransaction: AssembledTransaction<*>)

Properties

Link copied to clipboard

The AssembledTransaction that caused the error

Link copied to clipboard
expect open val cause: Throwable?
Link copied to clipboard
expect open val message: String?