List All Operations
GET/operations
This endpoint lists all Successful operations and can be used in streaming mode. Streaming mode allows you to listen for new operations as they are added to the Stellar ledger. If called in streaming mode, Horizon will start at the earliest known operation unless a cursor is set, in which case it will start from that cursor. By setting the cursor value to now, you can stream operations created since your request time.
Request
Query Parameters
A number that points to a specific location in a collection of responses and is pulled from the paging_token value of a record.
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
.
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.
Possible values: [true
, false
]
Set to true to include failed operations in results. Options include true and false.
Set to transactions to include the transactions which created each of the operations in the response.
Responses
- 200
Success
- application/json
- Schema
- Example (from schema)
- ListAllOperations
Schema
_links
object
self
object
next
object
prev
object
effects
object
precedes
object
succeds
object
transaction
object
{
"_links": {
"self": {
"href": "string",
"templated": true
},
"next": {
"href": "string",
"templated": true
},
"prev": {
"href": "string",
"templated": true
},
"effects": {
"href": "string",
"templated": true
},
"precedes": {
"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-testnet.stellar.org/operations?cursor=&limit=3&order=asc"
},
"next": {
"href": "https://horizon-testnet.stellar.org/operations?cursor=12884905987&limit=3&order=asc"
},
"prev": {
"href": "https://horizon-testnet.stellar.org/operations?cursor=12884905985&limit=3&order=desc"
}
},
"_embedded": {
"records": [
{
"_links": {
"self": {
"href": "https://horizon-testnet.stellar.org/operations/12884905985"
},
"transaction": {
"href": "https://horizon-testnet.stellar.org/transactions/3389e9f0f1a65f19736cacf544c2e825313e8447f569233bb8db39aa607c8889"
},
"effects": {
"href": "https://horizon-testnet.stellar.org/operations/12884905985/effects"
},
"succeeds": {
"href": "https://horizon-testnet.stellar.org/effects?order=desc&cursor=12884905985"
},
"precedes": {
"href": "https://horizon-testnet.stellar.org/effects?order=asc&cursor=12884905985"
}
},
"id": "12884905985",
"paging_token": "12884905985",
"transaction_successful": true,
"source_account": "GAAZI4TCR3TY5OJHCTJC2A4QSY6CJWJH5IAJTGKIN2ER7LBNVKOCCWN7",
"type": "create_account",
"type_i": 0,
"created_at": "2015-09-30T17:15:54Z",
"transaction_hash": "3389e9f0f1a65f19736cacf544c2e825313e8447f569233bb8db39aa607c8889",
"starting_balance": "20.0000000",
"funder": "GAAZI4TCR3TY5OJHCTJC2A4QSY6CJWJH5IAJTGKIN2ER7LBNVKOCCWN7",
"account": "GALPCCZN4YXA3YMJHKL6CVIECKPLJJCTVMSNYWBTKJW4K5HQLYLDMZTB"
},
{
"_links": {
"self": {
"href": "https://horizon-testnet.stellar.org/operations/12884905986"
},
"transaction": {
"href": "https://horizon-testnet.stellar.org/transactions/3389e9f0f1a65f19736cacf544c2e825313e8447f569233bb8db39aa607c8889"
},
"effects": {
"href": "https://horizon-testnet.stellar.org/operations/12884905986/effects"
},
"succeeds": {
"href": "https://horizon-testnet.stellar.org/effects?order=desc&cursor=12884905986"
},
"precedes": {
"href": "https://horizon-testnet.stellar.org/effects?order=asc&cursor=12884905986"
}
},
"id": "12884905986",
"paging_token": "12884905986",
"transaction_successful": true,
"source_account": "GAAZI4TCR3TY5OJHCTJC2A4QSY6CJWJH5IAJTGKIN2ER7LBNVKOCCWN7",
"type": "payment",
"type_i": 1,
"created_at": "2015-09-30T17:15:54Z",
"transaction_hash": "3389e9f0f1a65f19736cacf544c2e825313e8447f569233bb8db39aa607c8889",
"asset_type": "native",
"from": "GAAZI4TCR3TY5OJHCTJC2A4QSY6CJWJH5IAJTGKIN2ER7LBNVKOCCWN7",
"to": "GALPCCZN4YXA3YMJHKL6CVIECKPLJJCTVMSNYWBTKJW4K5HQLYLDMZTB",
"amount": "99999999959.9999700"
},
{
"_links": {
"self": {
"href": "https://horizon-testnet.stellar.org/operations/12884905987"
},
"transaction": {
"href": "https://horizon-testnet.stellar.org/transactions/3389e9f0f1a65f19736cacf544c2e825313e8447f569233bb8db39aa607c8889"
},
"effects": {
"href": "https://horizon-testnet.stellar.org/operations/12884905987/effects"
},
"succeeds": {
"href": "https://horizon-testnet.stellar.org/effects?order=desc&cursor=12884905987"
},
"precedes": {
"href": "https://horizon-testnet.stellar.org/effects?order=asc&cursor=12884905987"
}
},
"id": "12884905987",
"paging_token": "12884905987",
"transaction_successful": true,
"source_account": "GAAZI4TCR3TY5OJHCTJC2A4QSY6CJWJH5IAJTGKIN2ER7LBNVKOCCWN7",
"type": "set_options",
"type_i": 5,
"created_at": "2015-09-30T17:15:54Z",
"transaction_hash": "3389e9f0f1a65f19736cacf544c2e825313e8447f569233bb8db39aa607c8889",
"master_key_weight": 0
}
]
}
}