GetLedgerEntriesResponse

@Serializable
data class GetLedgerEntriesResponse(val entries: List<GetLedgerEntriesResponse.LedgerEntryResult>? = null, val latestLedger: Long)

Response for JSON-RPC method getLedgerEntries.

Returns the current state of ledger entries specified by their keys. This is the primary method for querying contract data, account balances, trustlines, and other ledger state. Each entry is returned with its current value and metadata about when it was last modified and when it will expire (for temporary/persistent contract storage).

See also

Constructors

Link copied to clipboard
constructor(entries: List<GetLedgerEntriesResponse.LedgerEntryResult>? = null, latestLedger: Long)

Types

Link copied to clipboard
@Serializable
data class LedgerEntryResult(val key: String, val xdr: String, val lastModifiedLedger: Long, val liveUntilLedger: Long? = null)

Represents a single ledger entry with its current value and metadata.

Properties

Link copied to clipboard

List of ledger entries matching the requested keys. May be null or empty if no entries were found. The order matches the order of keys in the request.

Link copied to clipboard

The sequence number of the latest ledger known to the server at the time of the request. This indicates the ledger state at which these entries were read.