pub enum Pagination {
From(u32),
FromTo(u32, u32),
Cursor(String),
}
Expand description
Set the boundaries while fetching data from the RPC
From(start) and FromTo(start, end)
start
is the ledger sequence number to start fetching responses from (inclusive). This
method will return an error if startLedger is less than the oldest ledger stored in this node,
or greater than the latest ledger seen by this node.
end
is the ledger sequence number represents the end of search window (exclusive)
Cursor(cursor)
A unique identifier (specifically, a TOID) that points to a specific location in a collection
of responses and is pulled from the paging_token value of a record. When a cursor is provided,
RPC will not include the element whose ID matches the cursor in the response: only elements
which appear after the cursor will be included.
Variants§
From(u32)
Fetch events starting at this ledger sequence
FromTo(u32, u32)
Fetch events from and up to these ledger sequences
Cursor(String)
Fetch events after this cursor