Stellar RPC (XLM)
Free public endpoints
Stellar is a Layer 1 that reaches consensus through the Stellar Consensus Protocol, a federated Byzantine agreement, and runs WebAssembly smart contracts.
Connect to Stellar
Free endpoints for every network below. Tatum Premium covers production traffic.
Connect to Stellar Gateway
Make your first RPC call on Stellar's Blockchain Gateway.
Testnet
Testnet* Rate limit enabled. This is enough for testing and development. For production, we recommend to Upgrade.
Get 200 requests/second, priority support and advanced blockchain features.
Global Load Balancer
Route to nearest node
Batch RPC Calls
Multiple requests at once
Archive Nodes
Historical blockchain data
Debug & Trace
Advanced debugging
Advanced Analytics
Usage & performance
Bring Your Own RPC
Custom RPC gateways
Increase your limit and access all network features in Tatum Development Platform.
No signup. No paywalls. Just RPC that works. Great ideas come from everywhere.
With love by Tatum
Stellar methods
Every method the Stellar gateway accepts, grouped by interface. 60 in total, read live from the node rather than kept by hand.
Mainnet is the live Stellar network. Every transaction it
accepts is final, and every XLM balance it
reports is real money.
Testnet answers the same methods on a network funded with tokens that have no market value. Develop there, then change the URL to Mainnet when the code is stable. Nothing else about your integration has to change.
Stellar answers over 2 interfaces: JSON-RPC and REST. Each is listed once below with every method it accepts. The endpoints differ per network, and all of them are in the gateway list above.
What sits between you and Stellar
A node is a machine running Stellar with a copy of the chain. Your code cannot ask the chain directly, it asks a node. The gateway picks a healthy one for every call, so you point at one URL instead of one machine.
- One URL, nothing to run or keep patched yourself.
- Calls routed to a node that is up and in sync.
- A failing node is skipped rather than returned to you as an error.
JSON-RPC
12 methodsThe default. Every wallet, library and framework speaks it, and it is what you want unless you specifically need something else.
One POST carries a method name, its parameters and an id, and the response comes back on the same connection carrying that same id. Requests are independent, so there is no session to keep alive and nothing to reconnect, which is why it runs unchanged behind a load balancer or inside a serverless function. Send an array instead of a single object and the node works through the whole batch in one round trip.
Where it fits
- Anything your client library already does for you. Libraries and SDKs for the chain target this.
- Batching reads. One array of twenty calls costs one round trip instead of twenty.
- Stateless and serverless deployments, because nothing has to stay connected between calls.
- Historical queries, by asking for an earlier block or slot where you would otherwise ask for the latest.
Trade-offs
- It cannot push. Finding out that a block landed means polling for it, or moving to WebSocket.
- Wide log queries get refused. Page through in fixed block windows and merge the results yourself.
- Batch responses may come back in any order. Match them on id, never on position.
Enabled and tested methods
Read live from the endpoint, so this is what it actually serves today rather than what the protocol allows in principle. Anything not on this list returns a method-not-found error.
- getEvents
- Returns contract and system events matching a filter, starting from a ledger.
- getFeeStats
- Returns inclusion fee statistics for recent ledgers, for Soroban and classic transactions.
- getHealth
- Reports whether the node is healthy and caught up with its peers.
- getLatestLedger
- Returns the sequence, hash and protocol version of the latest ledger.
- getLedgerEntries
- Reads ledger entries such as accounts, trustlines and contract data by key.
- getLedgers
- Returns a range of ledgers, starting from a sequence number.
- getNetwork
- Returns the network passphrase, protocol version and friendbot URL.
- getTransaction
- Returns a confirmed transaction by its signature.
- getTransactions
- Returns the transactions in a range of ledgers.
- getVersionInfo
- Returns the RPC server version and the Stellar Core version behind it.
- sendTransaction
- Broadcasts a signed transaction to the cluster.
- simulateTransaction
- Runs a transaction against current state without submitting it.
Common JSON-RPC errors
What you are most likely to hit calling this interface, and what to do about it.
- -32700
- Parse error. The request body was not valid JSON. Check that the body is serialised JSON and that Content-Type is application/json.
- -32600
- Invalid request. The JSON parsed, but it is not a well-formed JSON-RPC call. Include jsonrpc, method and id fields. A batch must be a non-empty array.
- -32601
- Method not found. This node does not expose the method you called. Check the spelling and the namespace, and confirm the method is in the list above for this network. Tracing methods in particular are not enabled everywhere.
- -32602
- Invalid params. The method exists but the arguments are wrong. Check argument order and types. Most EVM methods want hex-encoded quantities, and a block parameter such as latest or a hex height.
- -32603
- Internal error. The node failed while handling an otherwise valid request. Retry with backoff. If it persists on one method, it is usually that method rather than the node.
- -32000
- Server error. A catch-all the node uses for execution failures, most often a reverted call or a request over a limit. Read the accompanying message. Execution reverted means your call failed on chain, not in transport. Narrow the block range if you are querying logs.
- HTTP 429
- Rate limited. You have exceeded the free tier request allowance. Back off and retry, batch reads into single calls, or move to a dedicated endpoint for production traffic.
- HTTP 413
- Payload too large. The request body exceeded what the node accepts. Split large batches into smaller ones.
REST
48 methodsEvery resource has its own URL, so a request is just an address you can open.
Paste it into a browser, curl it, or bookmark it. There is no body to construct and no method name to look up, and because a read is a plain GET, ordinary HTTP caching applies at the CDN and in your own client. Responses are JSON, and the path itself usually tells you what you are getting.
Where it fits
- Getting oriented on an unfamiliar chain without writing any code first.
- Caching, because a GET can be cached by anything sitting between you and the node.
- Debugging, since the request that failed is a URL you can paste to a colleague.
Trade-offs
- You get exactly what the endpoint returns. There is no way to ask for less, or for more.
- Building a full picture takes several round trips where one batched JSON-RPC call would do.
- Paths carry version prefixes and shift between node releases more readily than method names do.
Enabled and tested methods
Read live from the endpoint, so this is what it actually serves today rather than what the protocol allows in principle. Anything not on this list returns a method-not-found error.
- GET /
- Returns the Horizon root: version, network passphrase and available endpoints.
- GET /accounts
- Lists accounts, ordered by balance.
- GET /accounts/{account-id}
- Returns an account: balances, signers, thresholds and flags.
- GET /accounts/{account-id}/data/{key}
- Returns one data entry stored on an account.
- GET /accounts/{account-id}/effects
- Lists the effects that changed an account.
- GET /accounts/{account-id}/offers
- Lists the open offers an account has placed.
- GET /accounts/{account-id}/operations
- Lists the operations involving an account.
- GET /accounts/{account-id}/payments
- Lists the payments sent or received by an account.
- GET /accounts/{account-id}/trades
- Lists the trades an account has taken part in.
- GET /accounts/{account-id}/transactions
- Lists the transactions involving an account.
- GET /assets
- Lists the assets issued on the network.
- GET /claimable_balances
- Lists claimable balances, which hold funds until a claimant takes them.
- GET /claimable_balances/{claimable_balance_id}
- Returns one claimable balance.
- GET /claimable_balances/{claimable_balance_id}/operations
- Lists the operations affecting a claimable balance.
- GET /claimable_balances/{claimable_balance_id}/transactions
- Lists the transactions affecting a claimable balance.
- GET /effects
- Lists effects, the fine-grained changes operations produce.
- GET /fee_stats
- Returns recent fee percentiles, for choosing a competitive fee.
- GET /ledgers
- Lists ledgers, the Stellar equivalent of blocks.
- GET /ledgers/{ledger-id}
- Returns one ledger.
- GET /ledgers/{ledger-id}/effects
- Lists the effects produced in a ledger.
- GET /ledgers/{ledger-id}/operations
- Lists the operations contained in a ledger.
- GET /ledgers/{ledger-id}/payments
- Lists the payments contained in a ledger.
- GET /ledgers/{ledger-id}/transactions
- Lists the transactions contained in a ledger.
- GET /liquidity_pools
- Lists the liquidity pools on the network.
- GET /liquidity_pools/{liquidity-pool-id}
- Returns one liquidity pool and its reserves.
- GET /liquidity_pools/{liquidity-pool-id}/effects
- Lists the effects involving a liquidity pool.
- GET /liquidity_pools/{liquidity-pool-id}/operations
- Lists the operations involving a liquidity pool.
- GET /liquidity_pools/{liquidity-pool-id}/trades
- Lists the trades executed against a liquidity pool.
- GET /liquidity_pools/{liquidity-pool-id}/transactions
- Lists the transactions involving a liquidity pool.
- GET /offers
- Lists the open offers on the network.
- GET /offers/{offer-id}
- Returns one open offer.
- GET /offers/{offer-id}/trades
- Lists the trades that filled an offer.
- GET /operations
- Lists operations, the individual actions inside transactions.
- GET /operations/{operation-id}
- Returns one operation.
- GET /operations/{operation-id}/effects
- Lists the effects an operation produced.
- GET /order_book
- Returns the order book for an asset pair.
- GET /paths/strict-receive
- Finds payment paths that deliver an exact amount to the recipient.
- GET /paths/strict-send
- Finds payment paths that spend an exact amount from the sender.
- GET /payments
- Lists payments across the network.
- GET /trade_aggregations
- Returns trade activity summarised into time buckets, for price charts.
- GET /trades
- Lists trades across the network.
- GET /transactions
- Lists transactions, newest first.
- GET /transactions/{transaction-id}
- Returns one transaction.
- GET /transactions/{transaction-id}/effects
- Lists the effects a transaction produced.
- GET /transactions/{transaction-id}/operations
- Lists the operations contained in a transaction.
- GET /transactions/{transaction-id}/payments
- Lists the payments contained in a transaction.
- POST /transactions
- Submits one or more signed transactions.
- POST /transactions_async
- Submits a signed transaction and returns once it is queued, without waiting for it to be included in a ledger.
Common REST errors
What you are most likely to hit calling this interface, and what to do about it.
- 400
- Bad request. A path or query parameter is malformed. Check the parameter format, and that path values are URL-encoded.
- 404
- Not found. Either the path is wrong, or the resource genuinely does not exist at that height. Confirm the path against the list above. A valid path can still 404 for pruned history on a non-archive node.
- 429
- Rate limited. You have exceeded the free tier request allowance. Back off and retry. REST responses cache well, so caching on your side removes most repeat traffic.
- 500
- Internal server error. The node failed while handling the request. Retry with backoff.
- 503
- Service unavailable. The node is starting, resyncing, or temporarily out of rotation. Retry with backoff; this is normally short-lived.
Indexed Stellar Data Insights
Complete on-chain data access, no infrastructure to run yourself. Query wallets, tokens, NFTs, and transaction history through one API.
About Stellar
What it is, and guides for building on it.
Stellar does not use mining or staking: each validator chooses the nodes it trusts, and the network agrees through overlapping quorum slices. Accounts have G addresses and must keep a minimum XLM balance, while smart contracts, written in Rust and compiled to WebAssembly, have C addresses. XLM pays transaction fees, and assets are issued natively without contracts. Stellar RPC is a JSON-RPC API for current state, transaction submission, and contract data, while the older Horizon REST API is being deprecated in its favor.
Frequently Asked Questions
Everything you need to know about Stellar RPC endpoints
Quick Answer: What is Stellar RPC?
RPC (Remote Procedure Call) is the standard way to interact with the network programmatically: reading on-chain data and submitting transactions through the chain's RPC methods. The free tier allows 5 requests per minute with no registration required, which covers most learning and testing workflows. Production applications typically move to Tatum Premium for 200 requests per second.
What is Stellar RPC?
How do I connect to Stellar using these RPC endpoints?
What are the rate limits for the free RPC tier?
Is Stellar RPC free forever?
What happens if I exceed the free tier rate limit?
Are these RPC endpoints secure?
What's the difference between mainnet and testnet RPC endpoints?
How do I troubleshoot RPC connection errors?
Can I use these endpoints in production?
Explore Other Blockchains
Discover RPC endpoints for other popular blockchain networks