Single

The single operation endpoint provides information about a specific operation.

- ARGUMENT -

  • id required

    The ID number for this operation.

  • join optional

    Set to transactions to include the transactions which created each of the operations in the response.

var StellarSdk = require("stellar-sdk");
var server = new StellarSdk.Server("https://expansion-testnet.bantu.network");

server
  .operations()
  .operation("121692259040116737")
  .call()
  .then(function (resp) {
    console.log(resp);
  })
  .catch(function (err) {
    console.error(err);
  });
{
  "_links": {
    "self": {
      "href": "https://horizon.stellar.org/operations/121692259040116737"
    },
    "transaction": {
      "href": "https://horizon.stellar.org/transactions/f92a9648c1084d1de0fd786faac5d5e1637d4127c60841d2366c70d2e7f77b85"
    },
    "effects": {
      "href": "https://horizon.stellar.org/operations/121692259040116737/effects"
    },
    "succeeds": {
      "href": "https://horizon.stellar.org/effects?order=desc\u0026cursor=121692259040116737"
    },
    "precedes": {
      "href": "https://horizon.stellar.org/effects?order=asc\u0026cursor=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
}

Last updated