Retrieve Related Transactions

This endpoint represents successful transactions referencing a given claimable balance and can be used in streaming mode. Streaming mode allows you to listen for new transactions referencing this claimable balance as they are added to the Stellar ledger. If called in streaming mode, Horizon will start at the earliest known transaction unless a cursor is set, in which case it will start from that cursor. By setting the cursor value to now, you can stream transactions created since your request time.

This method will use 20 Compute Units.


Reference: Here

Retrieve Related Transactions

This endpoint represents successful transactions referencing a given claimable balance and can be used in streaming mode. Streaming mode allows you to listen for new transactions referencing this claimable balance as they are added to the Stellar ledger. If called in streaming mode, Horizon will start at the earliest known transaction unless a cursor is set, in which case it will start from that cursor. By setting the cursor value to now, you can stream transactions created since your request time.

GEThttps://mainnet.stellar.validationcloud.io/v1/<YOUR_API_KEY_HERE>/claimable_balances/{claimable_balance_id}/transactions
Path parameters
claimable_balance_id*string

A unique identifier for this claimable balance.

Query parameters
Response

Success

Body
_linksobject
_embeddedobject
Request
const response = await fetch('https://mainnet.stellar.validationcloud.io/v1/<YOUR_API_KEY_HERE>/claimable_balances/{claimable_balance_id}/transactions', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "_links": {
    "self": {
      "href": "text",
      "templated": false
    },
    "next": {
      "href": "text",
      "templated": false
    },
    "prev": {
      "href": "text",
      "templated": false
    }
  },
  "_embedded": {
    "records": [
      {
        "memo": "text",
        "_links": {
          "self": {
            "href": "text",
            "templated": false
          },
          "account": {
            "href": "text",
            "templated": false
          },
          "ledger": {
            "href": "text",
            "templated": false
          },
          "operations": {
            "href": "text",
            "templated": false
          },
          "effects": {
            "href": "text",
            "templated": false
          },
          "precedes": {
            "href": "text",
            "templated": false
          },
          "succeeds": {
            "href": "text",
            "templated": false
          },
          "transaction": {
            "href": "text",
            "templated": false
          }
        },
        "id": "text",
        "paging_token": "text",
        "successful": false,
        "hash": "text",
        "created_at": "text",
        "source_account": "text",
        "account_muxed": "text",
        "account_muxed_id": "text",
        "source_account_sequence": "text",
        "fee_account": "text",
        "fee_account_muxed": "text",
        "fee_account_muxed_id": "text",
        "fee_charged": "text",
        "max_fee": "text",
        "envelope_xdr": "text",
        "result_xdr": "text",
        "result_meta_xdr": "text",
        "fee_meta_xdr": "text",
        "memo_type": "text",
        "signatures": [
          "text"
        ],
        "valid_after": "text",
        "valid_before": "text",
        "preconditions": {
          "timebounds": {
            "min_time": "text",
            "max_time": "text"
          },
          "ledgerbounds": {
            "min_ledger": "text",
            "max_ledger": "text"
          },
          "min_account_sequence": "text",
          "min_account_sequence_age": "text",
          "extra_signers": [
            "text"
          ]
        },
        "fee_bump_transaction": {
          "hash": "text",
          "signatures": [
            "text"
          ]
        },
        "inner_transaction": {
          "hash": "text",
          "signatures": [
            "text"
          ],
          "max_fee": "text"
        }
      }
    ]
  }
}

Last updated