Retrieve an Account's Effects
GET/accounts/:account_id/effects
This endpoint returns the effects of a specific account and can be used in streaming mode. Streaming mode allows you to listen for new effects for this account as they are added to the Stellar ledger. If called in streaming mode, Horizon will start at the earliest known effect unless a cursor is set, in which case it will start from that cursor. By setting the cursor value to now, you can stream effects created since your request time.
Request
Path Parameters
This account’s public key encoded in a base32 string representation.
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.
Responses
- 200
Success
- application/json
- Schema
- Example (from schema)
- RetrieveAnAccountsEffects
Schema
_links object
self object
next object
prev object
{
"_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-testnet.stellar.org/accounts/GCNL55IJTH2HX26HLNIGYD2JIQLTBAQL3SVPNZA6PXK7NAVHU423WOTE/effects?cursor=&limit=10&order=asc"
},
"next": {
"href": "https://horizon-testnet.stellar.org/accounts/GCNL55IJTH2HX26HLNIGYD2JIQLTBAQL3SVPNZA6PXK7NAVHU423WOTE/effects?cursor=147350483860869151-1&limit=10&order=asc"
},
"prev": {
"href": "https://horizon-testnet.stellar.org/accounts/GCNL55IJTH2HX26HLNIGYD2JIQLTBAQL3SVPNZA6PXK7NAVHU423WOTE/effects?cursor=110694007436259329-1&limit=10&order=desc"
}
},
"_embedded": {
"records": [
{
"_links": {
"operation": {
"href": "https://horizon-testnet.stellar.org/operations/110694007436259329"
},
"succeeds": {
"href": "https://horizon-testnet.stellar.org/effects?order=desc&cursor=110694007436259329-1"
},
"precedes": {
"href": "https://horizon-testnet.stellar.org/effects?order=asc&cursor=110694007436259329-1"
}
},
"id": "0110694007436259329-0000000001",
"paging_token": "110694007436259329-1",
"account": "GCNL55IJTH2HX26HLNIGYD2JIQLTBAQL3SVPNZA6PXK7NAVHU423WOTE",
"type": "account_created",
"type_i": 0,
"created_at": "2019-09-11T13:16:44Z",
"starting_balance": "1.0000000"
},
{
"_links": {
"operation": {
"href": "https://horizon-testnet.stellar.org/operations/110694007436259329"
},
"succeeds": {
"href": "https://horizon-testnet.stellar.org/effects?order=desc&cursor=110694007436259329-3"
},
"precedes": {
"href": "https://horizon-testnet.stellar.org/effects?order=asc&cursor=110694007436259329-3"
}
},
"id": "0110694007436259329-0000000003",
"paging_token": "110694007436259329-3",
"account": "GCNL55IJTH2HX26HLNIGYD2JIQLTBAQL3SVPNZA6PXK7NAVHU423WOTE",
"type": "signer_created",
"type_i": 10,
"created_at": "2019-09-11T13:16:44Z",
"weight": 1,
"public_key": "GCNL55IJTH2HX26HLNIGYD2JIQLTBAQL3SVPNZA6PXK7NAVHU423WOTE",
"key": ""
},
{
"_links": {
"operation": {
"href": "https://horizon-testnet.stellar.org/operations/110694007436259330"
},
"succeeds": {
"href": "https://horizon-testnet.stellar.org/effects?order=desc&cursor=110694007436259330-2"
},
"precedes": {
"href": "https://horizon-testnet.stellar.org/effects?order=asc&cursor=110694007436259330-2"
}
},
"id": "0110694007436259330-0000000002",
"paging_token": "110694007436259330-2",
"account": "GCNL55IJTH2HX26HLNIGYD2JIQLTBAQL3SVPNZA6PXK7NAVHU423WOTE",
"type": "account_credited",
"type_i": 2,
"created_at": "2019-09-11T13:16:44Z",
"asset_type": "native",
"amount": "355.2904739"
},
{
"_links": {
"operation": {
"href": "https://horizon-testnet.stellar.org/operations/115354197276323841"
},
"succeeds": {
"href": "https://horizon-testnet.stellar.org/effects?order=desc&cursor=115354197276323841-1"
},
"precedes": {
"href": "https://horizon-testnet.stellar.org/effects?order=asc&cursor=115354197276323841-1"
}
},
"id": "0115354197276323841-0000000001",
"paging_token": "115354197276323841-1",
"account": "GCNL55IJTH2HX26HLNIGYD2JIQLTBAQL3SVPNZA6PXK7NAVHU423WOTE",
"type": "account_credited",
"type_i": 2,
"created_at": "2019-11-18T19:59:40Z",
"asset_type": "native",
"amount": "688.4065454"
},
{
"_links": {
"operation": {
"href": "https://horizon-testnet.stellar.org/operations/117356420835532801"
},
"succeeds": {
"href": "https://horizon-testnet.stellar.org/effects?order=desc&cursor=117356420835532801-1"
},
"precedes": {
"href": "https://horizon-testnet.stellar.org/effects?order=asc&cursor=117356420835532801-1"
}
},
"id": "0117356420835532801-0000000001",
"paging_token": "117356420835532801-1",
"account": "GCNL55IJTH2HX26HLNIGYD2JIQLTBAQL3SVPNZA6PXK7NAVHU423WOTE",
"type": "account_credited",
"type_i": 2,
"created_at": "2019-12-18T08:23:35Z",
"asset_type": "native",
"amount": "355.3887598"
},
{
"_links": {
"operation": {
"href": "https://horizon-testnet.stellar.org/operations/119399833130811393"
},
"succeeds": {
"href": "https://horizon-testnet.stellar.org/effects?order=desc&cursor=119399833130811393-1"
},
"precedes": {
"href": "https://horizon-testnet.stellar.org/effects?order=asc&cursor=119399833130811393-1"
}
},
"id": "0119399833130811393-0000000001",
"paging_token": "119399833130811393-1",
"account": "GCNL55IJTH2HX26HLNIGYD2JIQLTBAQL3SVPNZA6PXK7NAVHU423WOTE",
"type": "trustline_created",
"type_i": 20,
"created_at": "2020-01-17T20:13:22Z",
"asset_type": "credit_alphanum4",
"asset_code": "USD",
"asset_issuer": "GDUKMGUGDZQK6YHYA5Z6AY2G4XDSZPSZ3SW5UN3ARVMO6QSRDWP5YLEX",
"limit": "922337203685.4775000"
},
{
"_links": {
"operation": {
"href": "https://horizon-testnet.stellar.org/operations/119399833130811394"
},
"succeeds": {
"href": "https://horizon-testnet.stellar.org/effects?order=desc&cursor=119399833130811394-1"
},
"precedes": {
"href": "https://horizon-testnet.stellar.org/effects?order=asc&cursor=119399833130811394-1"
}
},
"id": "0119399833130811394-0000000001",
"paging_token": "119399833130811394-1",
"account": "GCNL55IJTH2HX26HLNIGYD2JIQLTBAQL3SVPNZA6PXK7NAVHU423WOTE",
"type": "trade",
"type_i": 33,
"created_at": "2020-01-17T20:13:22Z",
"seller": "GCM4PT6XDZBWOOENDS6FOU22GJQLJPV2GC7VRVII4TFGZBA3ZXNM55SV",
"offer_id": "147625249",
"sold_amount": "539.0320108",
"sold_asset_type": "native",
"bought_amount": "32.8490620",
"bought_asset_type": "credit_alphanum4",
"bought_asset_code": "USD",
"bought_asset_issuer": "GDUKMGUGDZQK6YHYA5Z6AY2G4XDSZPSZ3SW5UN3ARVMO6QSRDWP5YLEX"
},
{
"_links": {
"operation": {
"href": "https://horizon-testnet.stellar.org/operations/119399833130811394"
},
"succeeds": {
"href": "https://horizon-testnet.stellar.org/effects?order=desc&cursor=119399833130811394-3"
},
"precedes": {
"href": "https://horizon-testnet.stellar.org/effects?order=asc&cursor=119399833130811394-3"
}
},
"id": "0119399833130811394-0000000003",
"paging_token": "119399833130811394-3",
"account": "GCNL55IJTH2HX26HLNIGYD2JIQLTBAQL3SVPNZA6PXK7NAVHU423WOTE",
"type": "trade",
"type_i": 33,
"created_at": "2020-01-17T20:13:22Z",
"seller": "GBDVKE33GVVMBXX73OHIBRP6RAHKHHW2P4PQVV6UNOKQCOXU7GNUM4QI",
"offer_id": "147618811",
"sold_amount": "854.9537682",
"sold_asset_type": "native",
"bought_amount": "52.0920258",
"bought_asset_type": "credit_alphanum4",
"bought_asset_code": "USD",
"bought_asset_issuer": "GDUKMGUGDZQK6YHYA5Z6AY2G4XDSZPSZ3SW5UN3ARVMO6QSRDWP5YLEX"
},
{
"_links": {
"operation": {
"href": "https://horizon-testnet.stellar.org/operations/119400713599217665"
},
"succeeds": {
"href": "https://horizon-testnet.stellar.org/effects?order=desc&cursor=119400713599217665-2"
},
"precedes": {
"href": "https://horizon-testnet.stellar.org/effects?order=asc&cursor=119400713599217665-2"
}
},
"id": "0119400713599217665-0000000002",
"paging_token": "119400713599217665-2",
"account": "GCNL55IJTH2HX26HLNIGYD2JIQLTBAQL3SVPNZA6PXK7NAVHU423WOTE",
"type": "account_debited",
"type_i": 3,
"created_at": "2020-01-17T20:32:38Z",
"asset_type": "credit_alphanum4",
"asset_code": "USD",
"asset_issuer": "GDUKMGUGDZQK6YHYA5Z6AY2G4XDSZPSZ3SW5UN3ARVMO6QSRDWP5YLEX",
"amount": "84.9410878"
},
{
"_links": {
"operation": {
"href": "https://horizon-testnet.stellar.org/operations/147350483860869151"
},
"succeeds": {
"href": "https://horizon-testnet.stellar.org/effects?order=desc&cursor=147350483860869151-1"
},
"precedes": {
"href": "https://horizon-testnet.stellar.org/effects?order=asc&cursor=147350483860869151-1"
}
},
"id": "0147350483860869151-0000000001",
"paging_token": "147350483860869151-1",
"account": "GCNL55IJTH2HX26HLNIGYD2JIQLTBAQL3SVPNZA6PXK7NAVHU423WOTE",
"type": "account_credited",
"type_i": 2,
"created_at": "2021-03-06T19:27:33Z",
"asset_type": "native",
"amount": "0.0000001"
}
]
}
}