Start building on Stellar for free
Create an endpoint in under a minute. The Free plan includes 50 million compute units a month, and no credit card is required.
Network Support
History retention: Horizon on Pubnet lets you query the most recent 90 days of history, and the Pubnet Archive endpoint extends this to 1 year (the archive endpoint serves Horizon only; Stellar RPC is not available on it). Stellar RPC (formerly Soroban) serves the most recent 60 days of history on Pubnet and the most recent 7 days on Testnet. Pubnet RPC v2 (Beta) serves Stellar RPC with full Pubnet history, back to ledger 2 in September 2015. Horizon on Testnet serves full history back to the most recent Stellar testnet reset; the Stellar Development Foundation periodically resets testnet, and history restarts from each reset.
Stellar RPC v2 (Beta)
Stellar RPC v2 is the Stellar Development Foundation’s full-history version of Stellar RPC. It serves every Pubnet ledger since ledger 2, sogetTransaction, getTransactions, getLedgers and getEvents can read any Pubnet ledger.
To use it, create an endpoint and select the Pubnet RPC v2 (Beta) network. Your endpoint URL is https://pubnet.stellar.validationcloud.io/v1/<YOUR_API_KEY_HERE>. A Pubnet RPC v2 key only works on that URL, and a Pubnet key only works on mainnet.stellar.validationcloud.io.
Stellar RPC v2 is compatible with existing Stellar RPC clients. No method, parameter or response field was removed. The differences are:
- Full history. Requests for old ledgers succeed instead of returning an out-of-range error.
getHealthreturnsledgerRetentionWindow: 0because the node keeps full history. UseoldestLedgerto find the oldest ledger served.getLedgersreturns at most 20 ledgers per page, with a default of 5. Stellar RPC on Pubnet and Testnet allows up to 200, with a default of 50. Alimitabove 20 returns an error.- New method: queryEvents adds newest-first ordering, positional topic filters and stateless cursors.
- No Horizon. Pubnet RPC v2 serves Stellar RPC only. For Horizon, use a Pubnet or Pubnet Archive endpoint.
Stellar SSE Streaming
We recently introduced an updated Compute Unit (CU) model for Server-Sent Events (SSE) streaming on Stellar Horizon API endpoints. SSE allows developers to receive real-time updates without the need for continuous polling. Pricing Model SSE-enabled Stellar endpoints use a two-part pricing structure:- Base cost per request: 20 CUs (same as standard Stellar endpoints)
- Data streaming cost: 1 CU per KB of data streamed to the client
- Standard endpoints: Fixed cost per request (no data-based charges)
- SSE endpoints: Base request cost plus variable cost based on streamed data volume
Getting Started
Send a request to check that your endpoint works. Replace<YOUR_API_KEY_HERE> with the key from your endpoint in the Validation Cloud app.
Compute Units
SSE Streaming Endpoints
Certain Stellar Horizon endpoints support Server-Sent Events (SSE), allowing clients to receive real-time updates instead of polling.Compute Units: When used in streaming mode, these endpoints are charged at 20 CUs per request plus 1 CU per KB of data streamed.The following endpoints support SSE streaming:
Top-level endpoints
- GET /ledgers
- GET /transactions
- GET /operations
- GET /payments
- GET /effects
- GET /trades
Account-specific endpoints
- GET /accounts/{account_id}/transactions
- GET /accounts/{account_id}/operations
- GET /accounts/{account_id}/payments
- GET /accounts/{account_id}/effects
- GET /accounts/{account_id}/trades
- GET /accounts/{account_id}/offers
Ledger-specific endpoints
- GET /ledgers/{ledger_sequence}/transactions
- GET /ledgers/{ledger_sequence}/operations
- GET /ledgers/{ledger_sequence}/payments
- GET /ledgers/{ledger_sequence}/effects
Liquidity pool endpoints
- GET /liquidity_pools/{liquidity_pool_id}/effects
- GET /liquidity_pools/{liquidity_pool_id}/trades
- GET /liquidity_pools/{liquidity_pool_id}/transactions
- GET /liquidity_pools/{liquidity_pool_id}/operations
Transaction & operation endpoints
- GET /operations/{operation_id}/effects
- GET /transactions/{transaction_id}/operations
- GET /transactions/{transaction_id}/effects
Offer endpoints
- GET /offers/{offer_id}/trades
Claimable balance endpoints
- GET /claimable_balances/{claimable_balance_id}/transactions
- GET /claimable_balances/{claimable_balance_id}/operations