Retrieve an Operation
GET/operations/:id
The single operation endpoint provides information about a specific operation.
Request
Path Parameters
id stringrequired
The ID number for this operation.
Query Parameters
join any
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)
- RetrieveAnOperation
Schema
_links object
self object
href linkrequired
templated boolean
next object
href linkrequired
templated boolean
prev object
href linkrequired
templated boolean
effects object
href linkrequired
templated boolean
precedes object
href linkrequired
templated boolean
succeds object
href linkrequired
templated boolean
transaction object
href linkrequired
templated boolean
id id (string)
paging_token paging_token (string)
type_i number
type string
{
"_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/121692259040116737"
},
"transaction": {
"href": "https://horizon-testnet.stellar.org/transactions/f92a9648c1084d1de0fd786faac5d5e1637d4127c60841d2366c70d2e7f77b85"
},
"effects": {
"href": "https://horizon-testnet.stellar.org/operations/121692259040116737/effects"
},
"succeeds": {
"href": "https://horizon-testnet.stellar.org/effects?order=desc&cursor=121692259040116737"
},
"precedes": {
"href": "https://horizon-testnet.stellar.org/effects?order=asc&cursor=121692259040116737"
}
},
"id": "121692259040116737",
"paging_token": "121692259040116737",
"transaction_successful": true,
"source_account": "GBDVKE33GVVMBXX73OHIBRP6RAHKHHW2P4PQVV6UNOKQCOXU7GNUM4QI",
"type": "manage_offer",
"type_i": 3,
"created_at": "2020-02-21T20:10:21Z",
"transaction_hash": "f92a9648c1084d1de0fd786faac5d5e1637d4127c60841d2366c70d2e7f77b85",
"amount": "10000.0000000",
"price": "0.0704336",
"price_r": {
"n": 44021,
"d": 625000
},
"buying_asset_type": "credit_alphanum4",
"buying_asset_code": "USD",
"buying_asset_issuer": "GDUKMGUGDZQK6YHYA5Z6AY2G4XDSZPSZ3SW5UN3ARVMO6QSRDWP5YLEX",
"selling_asset_type": "native",
"offer_id": 161536436
}
Loading...