Stellar RPC API

Supported Networks & History Retention

Network Node Type History Retention
Mainnet Horizon Full History Full ledger history
Testnet Horizon Node History available since the most recent testnet reset
Testnet resets typically occur on a quarterly basis. Historical data prior to the reset is no longer available via the Horizon API after each reset.

📘

See the Stellar RPC API connection guide.

Ledgers

Method Compute Unit Value
GET /ledgers/:sequence 5
GET /ledgers/:sequence/transactions 50
GET /ledgers/:sequence/operations 10
GET /ledgers/:sequence/payments 10
GET /ledgers/:sequence/effects 10
GET /ledgers 10

Transactions

Method Compute Unit Value
GET /transactions/:transaction_hash 5
GET /transactions/:transaction_hash/operations 5
GET /transactions/:transaction_hash/effects 5
GET /transactions 50
POST /transactions 50

Operations

Method Compute Unit Value
GET /operations/:id 5
GET /operations/:id/effects 5
GET /operations 10
GET /payments 10

Effects

Method Compute Unit Value
GET /effects 10

Accounts

Method Compute Unit Value
GET /accounts 10
GET /accounts/:account_id 5
GET /accounts/:account_id/transactions 5
GET /accounts/:account_id/operations 5
GET /accounts/:account_id/payments 5
GET /accounts/:account_id/effects 5
GET /accounts/:account_id/offers 5
GET /accounts/:account_id/trades 5
GET /accounts/:account_id/data/:key

Offers

Method Compute Unit Value
GET /offers 10
GET /offers/:offer_id 5
GET /offers/:offer_id/trades 10

Trades & Assets

Method Compute Unit Value
GET /trades 10
GET /assets 10

Claimable Balances

Method Compute Unit Value
GET /claimable_balances 10
GET /claimable_balances/:claimable_balance_id 5
GET /claimable_balances/:claimable_balance_id/transactions 50
GET /claimable_balances/:claimable_balance_id/operations 10

Liquidity Pools

Method Compute Unit Value
GET /liquidity_pools 10
GET /liquidity_pools/:liquidity_pool_id 5
GET /liquidity_pools/:liquidity_pool_id/effects 10
GET /liquidity_pools/:liquidity_pool_id/transactions 50
GET /liquidity_pools/:liquidity_pool_id/operations 10

Aggregations

Method Compute Unit Value
GET /order_book 10
GET /paths/strict-receive 10
GET /paths/strict-send 10
GET /trade_aggregations 10
GET /fee_stats 10