LedgerEntry
public struct LedgerEntry : Decodable, Sendable
Represents a Stellar ledger entry with its key, XDR value, and validity metadata.
-
The key of the ledger entry (serialized in a base64 string)
Declaration
Swift
public let key: String -
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? -
The entry extension from the “extXdr” response key, encoded as base64 XDR. Available for protocol version >= 23.
Declaration
Swift
public let ext: String? -
Declaration
Swift
public init(from decoder: Decoder) throws -
The key decoded as a LedgerKeyXDR, or nil if decoding fails.
Declaration
Swift
public var ledgerKeyXdr: LedgerKeyXDR? { get } -
The key bytes decoded as an
SCValXDR. The key is aLedgerKeyXDR, so the result does not represent the key;ledgerKeyXdrdecodes it.Declaration
Swift
@available(*, deprecated, message: "keyXdrValue decodes the LedgerKey as an SCValXDR; use ledgerKeyXdr.") public var keyXdrValue: SCValXDR? { get } -
Converst the valzue to a LedgerEntryDataXDR if valid
Declaration
Swift
public var valueXdr: LedgerEntryDataXDR? { get }
View on GitHub
Install in Dash