Skip to main content

Stellar API Documentation

Overview​

Bitquery's Stellar API gives you indexed Stellar data without running a node: XLM and issued-asset transfers and payments by address, account balances, transaction lookup, money-flow tracing and bulk history. History goes back to 2015.

Endpoint

Stellar GraphQL queries are served at https://graphql.bitquery.io. You need an API token: how to generate one.

Which surface serves what​

You needUseWhere
Transfers and payments by addressGraphQL APIStellar Payments API, query below
Account balancesGraphQL APIStellar Address API
Transaction lookup by hashGraphQL APIQuery below, Stellar Transactions API
Money-flow tracing in plain EnglishBitquery MCPTracing MCP
Bulk history as Parquet filesData StoreStellar Data

Quick start​

Latest payments to or from a Stellar address​

Returns the 10 newest payments where the address is sender or receiver. The currency name carries the issuer, which is how you tell a real asset from a look-alike with the same code.

{
stellar(network: stellar) {
transfers(
date: {between: ["2026-11-20", "2026-11-23"]}
any: [
{sender: {is: "GABFQIK63R2NETJM7T673EAMZN4RJLLGP3OFUEJU5SZVTGWUKULZJNL6"}}
{receiver: {is: "GABFQIK63R2NETJM7T673EAMZN4RJLLGP3OFUEJU5SZVTGWUKULZJNL6"}}
]
direction: {is: "payment"}
options: {desc: "block", limit: 10}
) {
block
timestamp {
time(format: "%Y-%m-%d %H:%M:%S")
}
sender {
address
annotation
}
receiver {
address
annotation
}
amountFrom
currencyFrom {
symbol
name
}
amountTo
currencyTo {
symbol
name
}
direction
operation {
name
}
transaction {
hash
}
}
}
}

Current XLM and asset balance of an address​

{
stellar(network: stellar) {
address(address: {is: "GABFQIK63R2NETJM7T673EAMZN4RJLLGP3OFUEJU5SZVTGWUKULZJNL6"}) {
address
annotation
balance
tokenBalances {
assetCode
assetIssuer
assetType
balance
}
}
}
}

Look up a Stellar transaction by hash​

Returns the transaction status, fee and memo, plus every value movement inside it. Keep the date filter on the day of the transaction so the lookup stays fast.

{
stellar(network: stellar) {
transactions(
date: {is: "2026-11-23"}
hash: {is: "06a1d5239e9e8d70a4ad620047e32486927b7c6d63e38835c77e2ff6f70efd08"}
) {
block
timestamp {
time(format: "%Y-%m-%d %H:%M:%S")
}
hash
sender {
address
}
success
fee
feeAccount {
address
}
operationCount
memoType
memos
}
transfers(
date: {is: "2026-11-23"}
transactionHash: {is: "06a1d5239e9e8d70a4ad620047e32486927b7c6d63e38835c77e2ff6f70efd08"}
) {
direction
operation {
name
}
sender {
address
}
receiver {
address
}
amountFrom
currencyFrom {
symbol
}
amountTo
currencyTo {
symbol
}
}
}
}

Trace Stellar money flow with the MCP​

Connect the Bitquery MCP server to Claude, Cursor or ChatGPT and ask in plain English. The Stellar tools cover incoming and outgoing transfers, top counterparties, next-hop and multi-hop tracing, and every record of a transaction with its memo.

"Where did GABFQIK63R2NETJM7T673EAMZN4RJLLGP3OFUEJU5SZVTGWUKULZJNL6 send its XLM in the last 7 days? Show the top receivers."

Tracing follows payments, path payments, account creations and account merges.

Bulk exports​

For backfills and warehouse loads, the Stellar Data Store datasets ship Stellar history as Parquet files for S3, Snowflake and BigQuery.

API reference​

Pitfalls​

  • An asset code is not a token. Anyone can issue "USDC", so check the issuer in the currency name or the issuerFrom / issuerTo fields.
  • The native currency is named Lumen in currency filters, not XLM.
  • Failed transactions are returned by the transactions query. Filter success: {is: true} before counting activity.
  • Keep a date filter on every query. Stellar has history since 2015 and unbounded queries are slow.
Build with Bitquery

Ready to run this in production?

Get an API key and run these queries in minutes, or talk to us about plans and enterprise delivery.