LedgerEntry

public struct LedgerEntry : Decodable, Sendable

Represents a Stellar ledger entry with its key, XDR value, and validity metadata.

  • key

    The key of the ledger entry (serialized in a base64 string)

    Declaration

    Swift

    public let key: String
  • xdr

    The current value of the given ledger entry (serialized in a base64 string)

    Declaration

    Swift

    public let xdr: String
  • The ledger sequence number of the last time this entry was updated.

    Declaration

    Swift

    public let lastModifiedLedgerSeq: Int
  • The ledger sequence number after which the ledger entry would expire. This field exists only for ContractCodeEntry and ContractDataEntry ledger entries (optional).

    Declaration

    Swift

    public let liveUntilLedgerSeq: Int?
  • ext

    The entry’s “Ext” field. Only available for protocol version >= 23

    Declaration

    Swift

    public let ext: String?
  • Declaration

    Swift

    public init(from decoder: Decoder) throws
  • Converst the key to a SCValXDR if valid.

    Declaration

    Swift

    public var keyXdrValue: SCValXDR? { get }
  • Converst the valzue to a LedgerEntryDataXDR if valid

    Declaration

    Swift

    public var valueXdr: LedgerEntryDataXDR? { get }