Skip to main content

Page Arguments

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

    DESCRIPTION

  • cursoroptional

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

  • orderoptional

    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.

  • limitoptional

    The maximum number of records returned. The limit can range from 1 to 200 - an upper limit that is hardcoded in Horizon for performance reasons. If this argument isn’t designated, it defaults to 10.

    curl "https://horizon-testnet.stellar.org/ledgers/26478723/operations?cursor=113725249324879872&limit=5&order=asc"
    Example Response
    {
    "_links": {
    "self": {
    "href": "https://horizon-testnet.stellar.org/ledgers/26478723/operations?cursor=113725249324879872\u0026limit=5\u0026order=asc"
    },
    "next": {
    "href": "https://horizon-testnet.stellar.org/ledgers/26478723/operations?cursor=113725249324916737\u0026limit=5\u0026order=asc"
    },
    "prev": {
    "href": "https://horizon-testnet.stellar.org/ledgers/26478723/operations?cursor=113725249324879873\u0026limit=5\u0026order=desc"
    }
    },
    "_embedded": {
    "records": [
    {
    "_links": {
    "self": {
    "href": "https://horizon-testnet.stellar.org/operations/113725249324879873"
    },
    "transaction": {
    "href": "https://horizon-testnet.stellar.org/transactions/6adab48bbc0a38b9d40938b63a8ae0f5b334948c2d5acfb755dea616f98720d1"
    },
    "effects": {
    "href": "https://horizon-testnet.stellar.org/operations/113725249324879873/effects"
    },
    "succeeds": {
    "href": "https://horizon-testnet.stellar.org/effects?order=desc\u0026cursor=113725249324879873"
    },
    "precedes": {
    "href": "https://horizon-testnet.stellar.org/effects?order=asc\u0026cursor=113725249324879873"
    }
    },
    "id": "113725249324879873",
    "paging_token": "113725249324879873",
    "transaction_successful": true,
    "source_account": "GCRGHKY6RBFVQLF2JCHB7TK7A5BIABITFKVIEOXK4BPEIDE446OEFYXZ",
    "type": "manage_offer",
    "type_i": 3,
    "created_at": "2019-10-25T20:45:51Z",
    "transaction_hash": "6adab48bbc0a38b9d40938b63a8ae0f5b334948c2d5acfb755dea616f98720d1",
    "amount": "5048.0792092",
    "price": "0.0000079",
    "price_r": {
    "n": 79,
    "d": 10000000
    },
    "buying_asset_type": "credit_alphanum4",
    "buying_asset_code": "BTC",
    "buying_asset_issuer": "GATEMHCCKCY67ZUCKTROYN24ZYT5GK4EQZ65JJLDHKHRUZI3EUEKMTCH",
    "selling_asset_type": "native",
    "offer_id": 125121197
    },
    {
    "_links": {
    "self": {
    "href": "https://horizon-testnet.stellar.org/operations/113725249324888065"
    },
    "transaction": {
    "href": "https://horizon-testnet.stellar.org/transactions/c4de60af4815d94b6f3aa9947403f96dd0e8c3ba7d84eccce9c2c798470381ed"
    },
    "effects": {
    "href": "https://horizon-testnet.stellar.org/operations/113725249324888065/effects"
    },
    "succeeds": {
    "href": "https://horizon-testnet.stellar.org/effects?order=desc\u0026cursor=113725249324888065"
    },
    "precedes": {
    "href": "https://horizon-testnet.stellar.org/effects?order=asc\u0026cursor=113725249324888065"
    }
    },
    "id": "113725249324888065",
    "paging_token": "113725249324888065",
    "transaction_successful": true,
    "source_account": "GCFKS7EBBZQTBBM7HHOASGZBE3L2TADWG6OJBVJXYIS44LQFXFL766UB",
    "type": "manage_offer",
    "type_i": 3,
    "created_at": "2019-10-25T20:45:51Z",
    "transaction_hash": "c4de60af4815d94b6f3aa9947403f96dd0e8c3ba7d84eccce9c2c798470381ed",
    "amount": "103.0721239",
    "price": "0.0655000",
    "price_r": {
    "n": 131,
    "d": 2000
    },
    "buying_asset_type": "credit_alphanum4",
    "buying_asset_code": "USD",
    "buying_asset_issuer": "GDSRCV5VTM3U7Y3L6DFRP3PEGBNQMGOWSRTGSBWX6Z3H6C7JHRI4XFJP",
    "selling_asset_type": "native",
    "offer_id": 0
    },
    {
    "_links": {
    "self": {
    "href": "https://horizon-testnet.stellar.org/operations/113725249324892161"
    },
    "transaction": {
    "href": "https://horizon-testnet.stellar.org/transactions/6d0fe444dd346e05742776305f5e90dd102bd83dfa00a54cfd79bd94753beba0"
    },
    "effects": {
    "href": "https://horizon-testnet.stellar.org/operations/113725249324892161/effects"
    },
    "succeeds": {
    "href": "https://horizon-testnet.stellar.org/effects?order=desc\u0026cursor=113725249324892161"
    },
    "precedes": {
    "href": "https://horizon-testnet.stellar.org/effects?order=asc\u0026cursor=113725249324892161"
    }
    },
    "id": "113725249324892161",
    "paging_token": "113725249324892161",
    "transaction_successful": true,
    "source_account": "GB44WLYD6HQXZHLRCPARIAMBASN35TDHXU5Q3I3DRHQMLLB3CBMIZLY5",
    "type": "manage_buy_offer",
    "type_i": 12,
    "created_at": "2019-10-25T20:45:51Z",
    "transaction_hash": "6d0fe444dd346e05742776305f5e90dd102bd83dfa00a54cfd79bd94753beba0",
    "amount": "2942.0268642",
    "price": "6.7000000",
    "price_r": {
    "n": 67,
    "d": 10
    },
    "buying_asset_type": "credit_alphanum4",
    "buying_asset_code": "SLT",
    "buying_asset_issuer": "GCKA6K5PCQ6PNF5RQBF7PQDJWRHO6UOGFMRLK3DYHDOI244V47XKQ4GP",
    "selling_asset_type": "native",
    "offer_id": 0
    },
    {
    "_links": {
    "self": {
    "href": "https://horizon-testnet.stellar.org/operations/113725249324908545"
    },
    "transaction": {
    "href": "https://horizon-testnet.stellar.org/transactions/36907ac7f802a079fa1d7e7fddeb31decbed1218b47924243daaa508af8b1bbe"
    },
    "effects": {
    "href": "https://horizon-testnet.stellar.org/operations/113725249324908545/effects"
    },
    "succeeds": {
    "href": "https://horizon-testnet.stellar.org/effects?order=desc\u0026cursor=113725249324908545"
    },
    "precedes": {
    "href": "https://horizon-testnet.stellar.org/effects?order=asc\u0026cursor=113725249324908545"
    }
    },
    "id": "113725249324908545",
    "paging_token": "113725249324908545",
    "transaction_successful": true,
    "source_account": "GBVI7F7QBE3ZEHP7HUAXAEKENITQKCXR5CML5JMOCHJN6EOQXLTSJYJI",
    "type": "payment",
    "type_i": 1,
    "created_at": "2019-10-25T20:45:51Z",
    "transaction_hash": "36907ac7f802a079fa1d7e7fddeb31decbed1218b47924243daaa508af8b1bbe",
    "asset_type": "credit_alphanum4",
    "asset_code": "TFC",
    "asset_issuer": "GDS3XDJAA4VY6MJYASIGSIMPHZ7AQNZ54RKLWT7MWCOU5YKYEVCNLVS3",
    "from": "GBVI7F7QBE3ZEHP7HUAXAEKENITQKCXR5CML5JMOCHJN6EOQXLTSJYJI",
    "to": "GAMKXMT23OMMOFJMZIHT5T3C65JI5YGAOHJMDYBBS4JJBB3X2CVLT3GO",
    "amount": "0.0380000"
    },
    {
    "_links": {
    "self": {
    "href": "https://horizon-testnet.stellar.org/operations/113725249324916737"
    },
    "transaction": {
    "href": "https://horizon-testnet.stellar.org/transactions/785058d3363b448c95943a40230333b8d523607c9617089bb17c9202a2e7384a"
    },
    "effects": {
    "href": "https://horizon-testnet.stellar.org/operations/113725249324916737/effects"
    },
    "succeeds": {
    "href": "https://horizon-testnet.stellar.org/effects?order=desc\u0026cursor=113725249324916737"
    },
    "precedes": {
    "href": "https://horizon-testnet.stellar.org/effects?order=asc\u0026cursor=113725249324916737"
    }
    },
    "id": "113725249324916737",
    "paging_token": "113725249324916737",
    "transaction_successful": true,
    "source_account": "GDD7ABRF7BCK76W33RXDQG5Q3WXVSQYVLGEMXSOWRGZ6Z3G3M2EM2TCP",
    "type": "manage_offer",
    "type_i": 3,
    "created_at": "2019-10-25T20:45:51Z",
    "transaction_hash": "785058d3363b448c95943a40230333b8d523607c9617089bb17c9202a2e7384a",
    "amount": "0.0000000",
    "price": "1.0000000",
    "price_r": {
    "n": 1,
    "d": 1
    },
    "buying_asset_type": "native",
    "selling_asset_type": "credit_alphanum4",
    "selling_asset_code": "BTC",
    "selling_asset_issuer": "GBVOL67TMUQBGL4TZYNMY3ZQ5WGQYFPFD5VJRWXR72VA33VFNL225PL5",
    "offer_id": 125126043
    }
    ]
    }
    }