LedgerEntryChange

@Serializable
data class LedgerEntryChange(val type: String, val key: String, val before: String? = null, val after: String? = null)

Represents a change in a ledger entry during simulation.

Before and After cannot be omitted at the same time:

  • If Before is omitted, it constitutes a creation

  • If After is omitted, it constitutes a deletion

  • If both are present, it constitutes an update

Constructors

Link copied to clipboard
constructor(type: String, key: String, before: String? = null, after: String? = null)

Properties

Link copied to clipboard

Base64-encoded LedgerEntry XDR of the state after the change (null for deletion)

Link copied to clipboard

Base64-encoded LedgerEntry XDR of the state before the change (null for creation)

Link copied to clipboard
val key: String

Base64-encoded LedgerKey XDR identifying the entry

Link copied to clipboard

Type of state change (typically "created", "updated", or "deleted")

Functions

Link copied to clipboard

Parses the after field from a base64-encoded string to a LedgerEntry XDR object.

Link copied to clipboard

Parses the before field from a base64-encoded string to a LedgerEntry XDR object.

Link copied to clipboard

Parses the key field from a base64-encoded string to a LedgerKey XDR object.