Retrieve a Ledger's Operations
This endpoint returns successful operations in a specific ledger.
Path Parameters
- sequence integer required
The sequence number of a specific ledger.
Query Parameters
- cursor integer
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
Possible values: [
asc
,desc
]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.
- limit integer
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.
- include_failed boolean
Possible values: [
true
,false
]Set to true to include failed operations in results. Options include true and false.
- join any
Set to transactions to include the transactions which created each of the operations in the response.
- 200
Success
- application/json
- Schema
- Example (from schema)
- RetrieveALedgersOperations
Schema
_links object
effects object
href link requiredtemplated booleanprecedes object
href link requiredtemplated booleanself object
href link requiredtemplated booleansucceds object
href link requiredtemplated booleantransaction object
href link requiredtemplated boolean- id id
- paging_token paging_token
- type_i number
- type string
{
"_links": {
"effects": {
"href": "string",
"templated": true
},
"precedes": {
"href": "string",
"templated": true
},
"self": {
"href": "string",
"templated": true
},
"succeds": {
"href": "string",
"templated": true
},
"transaction": {
"href": "string",
"templated": true
}
},
"id": "string",
"paging_token": "string",
"type_i": 0,
"type": "create_account"
}
{
"_links": {
"self": {
"href": "https://horizon.stellar.org/ledgers/27147222/operations?cursor=&limit=2&order=asc"
},
"next": {
"href": "https://horizon.stellar.org/ledgers/27147222/operations?cursor=116596430667259905&limit=2&order=asc"
},
"prev": {
"href": "https://horizon.stellar.org/ledgers/27147222/operations?cursor=116596430667255809&limit=2&order=desc"
}
},
"_embedded": {
"records": [
{
"_links": {
"self": {
"href": "https://horizon.stellar.org/operations/116596430667255809"
},
"transaction": {
"href": "https://horizon.stellar.org/transactions/3a644389bbec63dd2b107a03c16711563fc549daa7b7f56f951a2e470f81f2e0"
},
"effects": {
"href": "https://horizon.stellar.org/operations/116596430667255809/effects"
},
"succeeds": {
"href": "https://horizon.stellar.org/effects?order=desc&cursor=116596430667255809"
},
"precedes": {
"href": "https://horizon.stellar.org/effects?order=asc&cursor=116596430667255809"
}
},
"id": "116596430667255809",
"paging_token": "116596430667255809",
"transaction_successful": true,
"source_account": "GDQWI6FKB72DPOJE4CGYCFQZKRPQQIOYXRMZ5KEVGXMG6UUTGJMBCASH",
"type": "payment",
"type_i": 1,
"created_at": "2019-12-06T23:05:38Z",
"transaction_hash": "3a644389bbec63dd2b107a03c16711563fc549daa7b7f56f951a2e470f81f2e0",
"asset_type": "credit_alphanum4",
"asset_code": "NODL",
"asset_issuer": "GB2Y3AWXVROM2BHFQKQPTWKIOI3TZEBBD3LTKTVQTKEPXGOBE742NODL",
"from": "GDQWI6FKB72DPOJE4CGYCFQZKRPQQIOYXRMZ5KEVGXMG6UUTGJMBCASH",
"to": "GAD35Y7AEQYS4WNZND5OV7HQ6ALBDDNTNFO2TN2CM4ERE7ZV4FJBNXZ6",
"amount": "0.0000077"
},
{
"_links": {
"self": {
"href": "https://horizon.stellar.org/operations/116596430667259905"
},
"transaction": {
"href": "https://horizon.stellar.org/transactions/83eabfa824b57436eda49bb9ac28675285f6d945325f69db41792078a83d3479"
},
"effects": {
"href": "https://horizon.stellar.org/operations/116596430667259905/effects"
},
"succeeds": {
"href": "https://horizon.stellar.org/effects?order=desc&cursor=116596430667259905"
},
"precedes": {
"href": "https://horizon.stellar.org/effects?order=asc&cursor=116596430667259905"
}
},
"id": "116596430667259905",
"paging_token": "116596430667259905",
"transaction_successful": true,
"source_account": "GBE63IHPHXHKQHIF7L5P5MGOV4MMDYE6RGZCJYWJPBRQZDJ5MOAPOX7A",
"type": "manage_offer",
"type_i": 3,
"created_at": "2019-12-06T23:05:38Z",
"transaction_hash": "83eabfa824b57436eda49bb9ac28675285f6d945325f69db41792078a83d3479",
"amount": "0.0000023",
"price": "0.0484621",
"price_r": {
"n": 484621,
"d": 10000000
},
"buying_asset_type": "native",
"selling_asset_type": "credit_alphanum4",
"selling_asset_code": "RMT",
"selling_asset_issuer": "GDEGOXPCHXWFYY234D2YZSPEJ24BX42ESJNVHY5H7TWWQSYRN5ZKZE3N",
"offer_id": 0
}
]
}
}