Page Arguments

var StellarSdk = require("stellar-sdk");
var server = new StellarSdk.Server("https://horizon.bantu.network");

server
  .operations()
  .forLedger("26478723")
  .cursor("113725249324879872")
  .limit(5)
  .order("asc")
  .call()
  .then(function (resp) {
    console.log(resp);
  })
  .catch(function (err) {
    console.error(err);
  });

GET /{endpoint}?cursor={paging_token}&order={asc,desc}&limit={1-200}

Query Parameters

Name
Type
Description

limit

string

A number that points to a specific location in a collection of responses and is pulled from the paging_token value of a record.

order

string

A designation of the order in which records should appear. Options include asc(ascending) or desc (descending). If this argument isn’t set, it defaults to asc

cursor

string

A number that points to a specific location in a collection of responses and is pulled from the paging_token value of a record

Last updated

Was this helpful?