getLedgers: Returns all ledgers.
Description
Return all valid ledgers in pages or stream them to R.
Usage
getLedgers(limit, cursor = NULL, order = "asc", data.table = TRUE,
domain = "public")
Arguments
limit
numeric, the number of records to return. Default is 10.
cursor
numeric - optional, a paging token - where to start from. Can also be "now".
order
character - optional, "asc" or "desc"
data.table
boolean - if TRUE, a data.table is returned. If FALSE or NULL, a list is returned.
domain
character - signalling to query the testnet or public network. Can be either "testnet" or "public". boolean - if TRUE, a data.table is overwritten and the server-side streaming capability is utilised. A list will be returned.
Examples
Run this code# NOT RUN {
getLedgers(limit = 50)
# }
Run the code above in your browser using DataLab