TriportRPC

stellarHorizonListAssets

GEThttps://triport.io/rpc/stellar/horizon/assets?asset_code=USDC&limit=1&order=desc

List indexed Stellar assets.

Stellar mainnetstellar:rpcstellar_read_rpc — 15 / 20 / 100 / 250 RPS (free / basic / pro / business) (default, unmeasured)

Returns a cursor-paginated HAL page of indexed Stellar assets, optionally filtered by asset code or issuer.

Use it to discover assets and their Horizon metadata. Use stellarHorizonGetAccount for balances held by a specific account.

This is indexed state from the selected Horizon operator, not a write or asset-issuance endpoint. The route is best-effort without an SLA.

Parameters

asset_codestringoptional
Filter by asset code.
asset_issuerstringoptional
Filter by issuing account.
cursorstringoptional
Opaque Horizon paging token from a returned link.
orderstringoptional
Sort direction: asc or desc.
limitintegeroptional
Maximum page size from 1 through 200; 201 was rejected in measurement.

Response

This schema-shaped example uses placeholders where the contract does not provide a measured value:

_linksobject
HAL navigation links; additional link relations may be present.
_links.next.hrefstring
URL carrying the cursor for the next page.
_embeddedobject
Container for the returned collection.
_embedded.recordsarray
Page of asset HAL resources.

Errors

See Stellar errors and the shared error reference.

StatusMeaningWhen it happens
400Bad requestA query parameter is malformed or limit exceeds 200.
401UnauthorizedThe API key is missing or invalid.
403ForbiddenThe key lacks the required scope or tier.
429Rate limitedThe stellar_read_rpc RPS budget is exceeded.

Examples

JavaScript (fetch)

const response = await fetch("https://triport.io/rpc/stellar/horizon/assets?asset_code=USDC&limit=1&order=desc", {
  headers: {
    "Authorization": `Bearer ${process.env.TRIPORT_API_KEY}`,
    "Accept": "application/hal+json",
  },
});
if (!response.ok) throw new Error(`Horizon returned ${response.status}`);
const payload = await response.json();
console.log(payload);

Notes

  • limit is at most 200.
  • Combine asset_code and asset_issuer when one issued asset is required.
  • Related: stellarHorizonGetAccount.
  • Horizon is currently served by one measured operator on a best-effort basis without an SLA.
  • This product surface is read-only; transaction submission is unavailable.