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.
Stellar GraphQL queries are served at https://graphql.bitquery.io. You need an API token: how to generate one.
Which surface serves what
| You need | Use | Where |
|---|---|---|
| Transfers and payments by address | GraphQL API | Stellar Payments API, query below |
| Account balances | GraphQL API | Stellar Address API |
| Transaction lookup by hash | GraphQL API | Query below, Stellar Transactions API |
| Money-flow tracing in plain English | Bitquery MCP | Tracing MCP |
| Bulk history as Parquet files | Data Store | Stellar 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
- Stellar Payments API — payments with amounts, issuers and paths.
- Stellar Address API — XLM and asset balances of a wallet.
- Stellar Transactions API — transactions with fee, memo and status.
- Stellar Effects API — ledger effects by type.
- Stellar Trades API — order-book trade effects.
- Stellar Liquidity Pools API — pool deposits, withdrawals and trades.
Pitfalls
- An asset code is not a token. Anyone can issue "USDC", so check the issuer in the currency
nameor theissuerFrom/issuerTofields. - The native currency is named
Lumenin currency filters, notXLM. - Failed transactions are returned by the transactions query. Filter
success: {is: true}before counting activity. - Keep a
datefilter on every query. Stellar has history since 2015 and unbounded queries are slow.
More guides
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.