Retrieve an Account's Operations
This endpoint represents successful operations for a given account and can be used in streaming mode. Streaming mode allows you to listen for new operations for this account 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.
Path Parameters
- account_id string required
This account’s public key encoded in a base32 string representation.
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
Set to transactions to include the transactions which created each of the operations in the response.
- 200
Success
- application/json
- Schema
- Example (from schema)
- RetrieveAnAccountsOperations
Schema
_links object
self object
href linktemplated booleannext object
href linktemplated booleanprev object
href linktemplated boolean
{
"_links": {
"self": {
"href": "string",
"templated": true
},
"next": {
"href": "string",
"templated": true
},
"prev": {
"href": "string",
"templated": true
},
"transaction": {
"href": "string",
"templated": true
},
"effects": {
"href": "string",
"templated": true
},
"succeeds": {
"href": "string",
"templated": true
},
"precedes": {
"href": "string",
"templated": true
}
},
"id": "string",
"paging_token": "string",
"transaction_successful": true,
"source_account": "string",
"type": "create_account",
"type_i": 0,
"created_at": "string",
"transaction_hash": "string",
"starting_balance": "string",
"funder": "string",
"account": "string"
}
{
"_links": {
"self": {
"href": "https://horizon.stellar.org/accounts/GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA/operations?cursor=&limit=10&order=asc"
},
"next": {
"href": "https://horizon.stellar.org/accounts/GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA/operations?cursor=120194466505179137&limit=10&order=asc"
},
"prev": {
"href": "https://horizon.stellar.org/accounts/GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA/operations?cursor=120192344791343105&limit=10&order=desc"
}
},
"_embedded": {
"records": [
{
"_links": {
"self": {
"href": "https://horizon.stellar.org/operations/120192344791343105"
},
"transaction": {
"href": "https://horizon.stellar.org/transactions/ef0fe04ac3c7de7228ca2598886059868ad05c224a041e8b2d9ee2a8a9dd6894"
},
"effects": {
"href": "https://horizon.stellar.org/operations/120192344791343105/effects"
},
"succeeds": {
"href": "https://horizon.stellar.org/effects?order=desc&cursor=120192344791343105"
},
"precedes": {
"href": "https://horizon.stellar.org/effects?order=asc&cursor=120192344791343105"
}
},
"id": "120192344791343105",
"paging_token": "120192344791343105",
"transaction_successful": true,
"source_account": "GBVFTZL5HIPT4PFQVTZVIWR77V7LWYCXU4CLYWWHHOEXB64XPG5LDMTU",
"type": "create_account",
"type_i": 0,
"created_at": "2020-01-29T19:43:59Z",
"transaction_hash": "ef0fe04ac3c7de7228ca2598886059868ad05c224a041e8b2d9ee2a8a9dd6894",
"starting_balance": "2.0000000",
"funder": "GBVFTZL5HIPT4PFQVTZVIWR77V7LWYCXU4CLYWWHHOEXB64XPG5LDMTU",
"account": "GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA"
},
{
"_links": {
"self": {
"href": "https://horizon.stellar.org/operations/120192370561220609"
},
"transaction": {
"href": "https://horizon.stellar.org/transactions/c1cb850f413e4038c4120bd9badc07bb8ef85a46649a4d5c9c16e578a2d30589"
},
"effects": {
"href": "https://horizon.stellar.org/operations/120192370561220609/effects"
},
"succeeds": {
"href": "https://horizon.stellar.org/effects?order=desc&cursor=120192370561220609"
},
"precedes": {
"href": "https://horizon.stellar.org/effects?order=asc&cursor=120192370561220609"
}
},
"id": "120192370561220609",
"paging_token": "120192370561220609",
"transaction_successful": true,
"source_account": "GBVFTZL5HIPT4PFQVTZVIWR77V7LWYCXU4CLYWWHHOEXB64XPG5LDMTU",
"type": "payment",
"type_i": 1,
"created_at": "2020-01-29T19:44:36Z",
"transaction_hash": "c1cb850f413e4038c4120bd9badc07bb8ef85a46649a4d5c9c16e578a2d30589",
"asset_type": "native",
"from": "GBVFTZL5HIPT4PFQVTZVIWR77V7LWYCXU4CLYWWHHOEXB64XPG5LDMTU",
"to": "GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA",
"amount": "200.0000000"
},
{
"_links": {
"self": {
"href": "https://horizon.stellar.org/operations/120192452165550081"
},
"transaction": {
"href": "https://horizon.stellar.org/transactions/0e6bc30f2b2f50ca0ecedef5a527309c74964e7daa6018976cd2c686c5df4be3"
},
"effects": {
"href": "https://horizon.stellar.org/operations/120192452165550081/effects"
},
"succeeds": {
"href": "https://horizon.stellar.org/effects?order=desc&cursor=120192452165550081"
},
"precedes": {
"href": "https://horizon.stellar.org/effects?order=asc&cursor=120192452165550081"
}
},
"id": "120192452165550081",
"paging_token": "120192452165550081",
"transaction_successful": true,
"source_account": "GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA",
"type": "change_trust",
"type_i": 6,
"created_at": "2020-01-29T19:46:20Z",
"transaction_hash": "0e6bc30f2b2f50ca0ecedef5a527309c74964e7daa6018976cd2c686c5df4be3",
"asset_type": "credit_alphanum4",
"asset_code": "USD",
"asset_issuer": "GDUKMGUGDZQK6YHYA5Z6AY2G4XDSZPSZ3SW5UN3ARVMO6QSRDWP5YLEX",
"limit": "922337203685.4775807",
"trustee": "GDUKMGUGDZQK6YHYA5Z6AY2G4XDSZPSZ3SW5UN3ARVMO6QSRDWP5YLEX",
"trustor": "GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA"
},
{
"_links": {
"self": {
"href": "https://horizon.stellar.org/operations/120192477935251457"
},
"transaction": {
"href": "https://horizon.stellar.org/transactions/ec4116595bdfa8c1039c40af425e497c91fcf387c2a2a0cfa1f3bf64733f1f23"
},
"effects": {
"href": "https://horizon.stellar.org/operations/120192477935251457/effects"
},
"succeeds": {
"href": "https://horizon.stellar.org/effects?order=desc&cursor=120192477935251457"
},
"precedes": {
"href": "https://horizon.stellar.org/effects?order=asc&cursor=120192477935251457"
}
},
"id": "120192477935251457",
"paging_token": "120192477935251457",
"transaction_successful": true,
"source_account": "GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA",
"type": "change_trust",
"type_i": 6,
"created_at": "2020-01-29T19:46:55Z",
"transaction_hash": "ec4116595bdfa8c1039c40af425e497c91fcf387c2a2a0cfa1f3bf64733f1f23",
"asset_type": "credit_alphanum4",
"asset_code": "NGNT",
"asset_issuer": "GAWODAROMJ33V5YDFY3NPYTHVYQG7MJXVJ2ND3AOGIHYRWINES6ACCPD",
"limit": "922337203685.4775807",
"trustee": "GAWODAROMJ33V5YDFY3NPYTHVYQG7MJXVJ2ND3AOGIHYRWINES6ACCPD",
"trustor": "GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA"
},
{
"_links": {
"self": {
"href": "https://horizon.stellar.org/operations/120192490820268033"
},
"transaction": {
"href": "https://horizon.stellar.org/transactions/81f2b857cb47d7c63ca12e2ec3466f6f17b4990bf492ef752c9c6d2035ca11ff"
},
"effects": {
"href": "https://horizon.stellar.org/operations/120192490820268033/effects"
},
"succeeds": {
"href": "https://horizon.stellar.org/effects?order=desc&cursor=120192490820268033"
},
"precedes": {
"href": "https://horizon.stellar.org/effects?order=asc&cursor=120192490820268033"
}
},
"id": "120192490820268033",
"paging_token": "120192490820268033",
"transaction_successful": true,
"source_account": "GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA",
"type": "change_trust",
"type_i": 6,
"created_at": "2020-01-29T19:47:11Z",
"transaction_hash": "81f2b857cb47d7c63ca12e2ec3466f6f17b4990bf492ef752c9c6d2035ca11ff",
"asset_type": "credit_alphanum4",
"asset_code": "EURT",
"asset_issuer": "GAP5LETOV6YIE62YAM56STDANPRDO7ZFDBGSNHJQIYGGKSMOZAHOOS2S",
"limit": "922337203685.4775807",
"trustee": "GAP5LETOV6YIE62YAM56STDANPRDO7ZFDBGSNHJQIYGGKSMOZAHOOS2S",
"trustor": "GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA"
},
{
"_links": {
"self": {
"href": "https://horizon.stellar.org/operations/120192499410071553"
},
"transaction": {
"href": "https://horizon.stellar.org/transactions/34b28df891c6a09968a2f0a6b410300b08b09c5f58cd12fe64fda59d29688f6e"
},
"effects": {
"href": "https://horizon.stellar.org/operations/120192499410071553/effects"
},
"succeeds": {
"href": "https://horizon.stellar.org/effects?order=desc&cursor=120192499410071553"
},
"precedes": {
"href": "https://horizon.stellar.org/effects?order=asc&cursor=120192499410071553"
}
},
"id": "120192499410071553",
"paging_token": "120192499410071553",
"transaction_successful": true,
"source_account": "GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA",
"type": "change_trust",
"type_i": 6,
"created_at": "2020-01-29T19:47:22Z",
"transaction_hash": "34b28df891c6a09968a2f0a6b410300b08b09c5f58cd12fe64fda59d29688f6e",
"asset_type": "credit_alphanum4",
"asset_code": "BB1",
"asset_issuer": "GD5J6HLF5666X4AZLTFTXLY46J5SW7EXRKBLEYPJP33S33MXZGV6CWFN",
"limit": "922337203685.4775807",
"trustee": "GD5J6HLF5666X4AZLTFTXLY46J5SW7EXRKBLEYPJP33S33MXZGV6CWFN",
"trustor": "GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA"
},
{
"_links": {
"self": {
"href": "https://horizon.stellar.org/operations/120192508000047105"
},
"transaction": {
"href": "https://horizon.stellar.org/transactions/12a8e8f11a697ee06a092eb0700c2b713fe07d29ffab190988d5bb248caf1917"
},
"effects": {
"href": "https://horizon.stellar.org/operations/120192508000047105/effects"
},
"succeeds": {
"href": "https://horizon.stellar.org/effects?order=desc&cursor=120192508000047105"
},
"precedes": {
"href": "https://horizon.stellar.org/effects?order=asc&cursor=120192508000047105"
}
},
"id": "120192508000047105",
"paging_token": "120192508000047105",
"transaction_successful": true,
"source_account": "GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA",
"type": "change_trust",
"type_i": 6,
"created_at": "2020-01-29T19:47:33Z",
"transaction_hash": "12a8e8f11a697ee06a092eb0700c2b713fe07d29ffab190988d5bb248caf1917",
"asset_type": "credit_alphanum4",
"asset_code": "CNY",
"asset_issuer": "GAREELUB43IRHWEASCFBLKHURCGMHE5IF6XSE7EXDLACYHGRHM43RFOX",
"limit": "922337203685.4775807",
"trustee": "GAREELUB43IRHWEASCFBLKHURCGMHE5IF6XSE7EXDLACYHGRHM43RFOX",
"trustor": "GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA"
},
{
"_links": {
"self": {
"href": "https://horizon.stellar.org/operations/120192542359883777"
},
"transaction": {
"href": "https://horizon.stellar.org/transactions/36b9c9aa3c4a22a1e8274f69b1bbfdd5764e55b80804a8d9c6b35c14e4147580"
},
"effects": {
"href": "https://horizon.stellar.org/operations/120192542359883777/effects"
},
"succeeds": {
"href": "https://horizon.stellar.org/effects?order=desc&cursor=120192542359883777"
},
"precedes": {
"href": "https://horizon.stellar.org/effects?order=asc&cursor=120192542359883777"
}
},
"id": "120192542359883777",
"paging_token": "120192542359883777",
"transaction_successful": true,
"source_account": "GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA",
"type": "manage_buy_offer",
"type_i": 12,
"created_at": "2020-01-29T19:48:16Z",
"transaction_hash": "36b9c9aa3c4a22a1e8274f69b1bbfdd5764e55b80804a8d9c6b35c14e4147580",
"amount": "3.0000000",
"price": "18.1088911",
"price_r": {
"n": 181088911,
"d": 10000000
},
"buying_asset_type": "credit_alphanum4",
"buying_asset_code": "EURT",
"buying_asset_issuer": "GAP5LETOV6YIE62YAM56STDANPRDO7ZFDBGSNHJQIYGGKSMOZAHOOS2S",
"selling_asset_type": "native",
"offer_id": "0"
},
{
"_links": {
"self": {
"href": "https://horizon.stellar.org/operations/120192568129794049"
},
"transaction": {
"href": "https://horizon.stellar.org/transactions/f0362887d2b9b853e7b464b174adfceb4c73ffb6a45e10b7cb3bff9cfa808340"
},
"effects": {
"href": "https://horizon.stellar.org/operations/120192568129794049/effects"
},
"succeeds": {
"href": "https://horizon.stellar.org/effects?order=desc&cursor=120192568129794049"
},
"precedes": {
"href": "https://horizon.stellar.org/effects?order=asc&cursor=120192568129794049"
}
},
"id": "120192568129794049",
"paging_token": "120192568129794049",
"transaction_successful": true,
"source_account": "GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA",
"type": "manage_buy_offer",
"type_i": 12,
"created_at": "2020-01-29T19:48:54Z",
"transaction_hash": "f0362887d2b9b853e7b464b174adfceb4c73ffb6a45e10b7cb3bff9cfa808340",
"amount": "200.0000000",
"price": "0.0459893",
"price_r": {
"n": 459893,
"d": 10000000
},
"buying_asset_type": "credit_alphanum4",
"buying_asset_code": "NGNT",
"buying_asset_issuer": "GAWODAROMJ33V5YDFY3NPYTHVYQG7MJXVJ2ND3AOGIHYRWINES6ACCPD",
"selling_asset_type": "native",
"offer_id": "0"
},
{
"_links": {
"self": {
"href": "https://horizon.stellar.org/operations/120194466505179137"
},
"transaction": {
"href": "https://horizon.stellar.org/transactions/a470f40ba0c1fd17cb957e0b438bd873b110ffb808b8133a5144cea3f5a66d0d"
},
"effects": {
"href": "https://horizon.stellar.org/operations/120194466505179137/effects"
},
"succeeds": {
"href": "https://horizon.stellar.org/effects?order=desc&cursor=120194466505179137"
},
"precedes": {
"href": "https://horizon.stellar.org/effects?order=asc&cursor=120194466505179137"
}
},
"id": "120194466505179137",
"paging_token": "120194466505179137",
"transaction_successful": true,
"source_account": "GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA",
"type": "change_trust",
"type_i": 6,
"created_at": "2020-01-29T20:31:28Z",
"transaction_hash": "a470f40ba0c1fd17cb957e0b438bd873b110ffb808b8133a5144cea3f5a66d0d",
"asset_type": "credit_alphanum4",
"asset_code": "CNY",
"asset_issuer": "GAREELUB43IRHWEASCFBLKHURCGMHE5IF6XSE7EXDLACYHGRHM43RFOX",
"limit": "0.0000000",
"trustee": "GAREELUB43IRHWEASCFBLKHURCGMHE5IF6XSE7EXDLACYHGRHM43RFOX",
"trustor": "GAYOLLLUIZE4DZMBB2ZBKGBUBZLIOYU6XFLW37GBP2VZD3ABNXCW4BVA"
}
]
}
}