stellarHorizonGetAccount — Stellar REST API

Get current Horizon account state.

GEThttps://triport.io/rpc/stellar/horizon/accounts/$STELLAR_ACCOUNT
Network
Stellar mainnet
Scope
stellar:rpc
Auth
x-token: $TRIPORT_API_KEY (or Authorization: Bearer)
Rate limit
stellar_read_rpc — 15 / 20 / 100 / 250 RPS sustained · short burst 30 / 40 / 200 / 500 (free / basic / pro / business) (plan policy); Burst capacity

Endpoint and plans: Stellar RPC endpoint.

Returns the latest account balances, sequence, signers, sponsorship data, and HAL links for one Stellar account.

Use it for current account state. It is not a historical snapshot API; account history is available through the account-scoped payment and transaction collections.

The account route is latest-only. The available Horizon path is backed by one measured operator and is best-effort without an SLA.

Parameters

accountstringrequired
Stellar account ID in the path.

Response

_linksobject
HAL links related to the account.
account_idstring
Canonical account ID.
sequencestring
Current account sequence.
balancesarray
Current native and trustline balances.

Errors

See Stellar errors and the shared error reference.

StatusMeaningWhen it happens
401UnauthorizedThe API key is missing or invalid.
403ForbiddenThe key lacks the required scope or tier.
404Not foundA requested account or resource does not exist.
429Rate limitedThe stellar_read_rpc RPS budget is exceeded.

Examples

JavaScript (fetch)

const account = process.env.STELLAR_ACCOUNT;
const response = await fetch(`https://triport.io/rpc/stellar/horizon/accounts/${account}`, {
  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

  • Account state is latest-only.
  • A missing account returns 404, not an empty synthetic account.
  • Related: stellarHorizonListAccountPayments and stellarHorizonListAccountTransactions.
  • 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.
  • The account's sequence decides the next transaction's sequence number; see how Stellar sequence numbers work.