GetLedgersRequest

@Serializable
data class GetLedgersRequest(val startLedger: Long? = null, val pagination: GetLedgersRequest.Pagination? = null)

Request for JSON-RPC method getLedgers.

Fetches a list of ledgers starting from a specified ledger sequence or using cursor-based pagination.

See also

Constructors

Link copied to clipboard
constructor(startLedger: Long? = null, pagination: GetLedgersRequest.Pagination? = null)

Types

Link copied to clipboard
@Serializable
data class Pagination(val cursor: String? = null, val limit: Long? = null)

Pagination options for controlling the number of results returned.

Properties

Link copied to clipboard

Optional pagination configuration for limiting and controlling result sets.

Link copied to clipboard

Ledger sequence number to start fetching ledgers from (inclusive). Optional when using cursor-based pagination.