Retrieve a Transaction's Payments
GET/transactions/:transaction_hash/payments
This endpoint returns the payments of a specific transaction.
Request
Path Parameters
Transactions are commands that modify the ledger state and consist of one or more operations.
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)
- RetrieveATransactionsPayments
Schema
Array [
]
_links
object
self
object
next
object
prev
object
_embedded
object
records
object[]
_links
object
self
object
required
transaction
object
required
effects
object
required
succeeds
object
required
precedes
object
required
Possible values: Value must match regular expression G[A-Z0-9]{55}
Possible values: [native
, credit_alphanum4
, credit_alphanum12
]
Possible values: Value must match regular expression G[A-Z0-9]{55}
Possible values: Value must match regular expression G[A-Z0-9]{55}
Possible values: Value must match regular expression G[A-Z0-9]{55}
{
"_links": {
"self": {
"href": "string",
"templated": true
},
"next": {
"href": "string",
"templated": true
},
"prev": {
"href": "string",
"templated": true
}
},
"_embedded": {
"records": [
{
"_links": {
"self": {
"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": "payment",
"type_i": "string",
"created_at": "string",
"transaction_hash": "string",
"asset_type": "string",
"asset_issuer": "string",
"from": "string",
"to": "string",
"amount": "string"
}
]
}
}
{
"_links": {
"self": {
"href": "https://horizon-testnet.stellar.org/transactions/f8929884dfc56ff9d8bc220c7bfba9e58208943eba96f33e8a0787a5bb8a4629/payments?cursor=&limit=10&order=asc"
},
"next": {
"href": "https://horizon-testnet.stellar.org/transactions/f8929884dfc56ff9d8bc220c7bfba9e58208943eba96f33e8a0787a5bb8a4629/payments?cursor=3382840796385281&limit=10&order=asc"
},
"prev": {
"href": "https://horizon-testnet.stellar.org/transactions/f8929884dfc56ff9d8bc220c7bfba9e58208943eba96f33e8a0787a5bb8a4629/payments?cursor=3382840796385281&limit=10&order=desc"
}
},
"_embedded": {
"records": {
"_links": {
"self": {
"href": "https://horizon-testnet.stellar.org/operations/3382840796385281"
},
"transaction": {
"href": "https://horizon-testnet.stellar.org/transactions/f8929884dfc56ff9d8bc220c7bfba9e58208943eba96f33e8a0787a5bb8a4629"
},
"effects": {
"href": "https://horizon-testnet.stellar.org/operations/3382840796385281/effects"
},
"succeeds": {
"href": "https://horizon-testnet.stellar.org/effects?order=desc&cursor=3382840796385281"
},
"precedes": {
"href": "https://horizon-testnet.stellar.org/effects?order=asc&cursor=3382840796385281"
}
},
"id": "3382840796385281",
"paging_token": "3382840796385281",
"transaction_successful": true,
"source_account": "GCNEGL4IYJ4XH2GV62QK4PQ5D4YWSYZPBC3NVF6VMNSFUMBFW3V3DKKY",
"type": "account_merge",
"type_i": 8,
"created_at": "2024-07-29T19:33:23Z",
"transaction_hash": "f8929884dfc56ff9d8bc220c7bfba9e58208943eba96f33e8a0787a5bb8a4629",
"account": "GCNEGL4IYJ4XH2GV62QK4PQ5D4YWSYZPBC3NVF6VMNSFUMBFW3V3DKKY",
"into": "GBFAIH5WKAJQ77NG6BZG7TGVGXHPX4SQLIJ7BENJMCVCZSUZPSISCLU5"
}
}
}