Retrieve a Transaction's Payments

This method will use 10 Compute Units.


Retrieve a Transaction's Payments

get

This endpoint returns the payments of a specific transaction.

Path parameters
transaction_hashstringRequired

Transactions are commands that modify the ledger state and consist of one or more operations.

Example: 5ebd5c0af4385500b53dd63b0ef5f6e8feef1a7e1c86989be3cdcce825f3c0cc
Query parameters
cursorintegerOptional

A number that points to a specific location in a collection of responses and is pulled from the paging_token value of a record.

Example: 6606617478959105
orderstring · enumOptional

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.

Possible values:
limitintegerOptional

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.

Example: 10
Responses
200
Success
application/json
Responseall of
get
GET /v1/<YOUR_API_KEY_HERE>/transactions/{transaction_hash}/payments HTTP/1.1
Host: mainnet.stellar.validationcloud.io
Accept: */*
200

Success

{
  "_links": {
    "self": {
      "href": "https://mainnet.stellar.validationcloud.io/v1/<YOUR_API_KEY_HERE>//transactions/f8929884dfc56ff9d8bc220c7bfba9e58208943eba96f33e8a0787a5bb8a4629/payments?cursor=&limit=10&order=asc"
    },
    "next": {
      "href": "https://mainnet.stellar.validationcloud.io/v1/<YOUR_API_KEY_HERE>//transactions/f8929884dfc56ff9d8bc220c7bfba9e58208943eba96f33e8a0787a5bb8a4629/payments?cursor=3382840796385281&limit=10&order=asc"
    },
    "prev": {
      "href": "https://mainnet.stellar.validationcloud.io/v1/<YOUR_API_KEY_HERE>//transactions/f8929884dfc56ff9d8bc220c7bfba9e58208943eba96f33e8a0787a5bb8a4629/payments?cursor=3382840796385281&limit=10&order=desc"
    }
  },
  "_embedded": {
    "records": {
      "_links": {
        "self": {
          "href": "https://mainnet.stellar.validationcloud.io/v1/<YOUR_API_KEY_HERE>//operations/3382840796385281"
        },
        "transaction": {
          "href": "https://mainnet.stellar.validationcloud.io/v1/<YOUR_API_KEY_HERE>//transactions/f8929884dfc56ff9d8bc220c7bfba9e58208943eba96f33e8a0787a5bb8a4629"
        },
        "effects": {
          "href": "https://mainnet.stellar.validationcloud.io/v1/<YOUR_API_KEY_HERE>//operations/3382840796385281/effects"
        },
        "succeeds": {
          "href": "https://mainnet.stellar.validationcloud.io/v1/<YOUR_API_KEY_HERE>//effects?order=desc&cursor=3382840796385281"
        },
        "precedes": {
          "href": "https://mainnet.stellar.validationcloud.io/v1/<YOUR_API_KEY_HERE>//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"
    }
  }
}

Last updated

Was this helpful?