LumenQuery API Documentation
Enterprise-grade Stellar infrastructure. Horizon API for blockchain data, Soroban RPC for smart contracts.
REST
Horizon API
Access accounts, transactions, ledgers, and all blockchain data via REST API.
api.lumenquery.ioJSON-RPC
Soroban RPC
Deploy and invoke smart contracts, simulate transactions, query contract state.
rpc.lumenquery.ioAuthentication
Include your API key in the X-API-Key header.
X-API-Key: lq_your_api_key_here
Keep your API key secure! Never expose it in client-side code.
Quick Start
- Create an account at lumenquery.io/auth/signup
- Generate an API key from your dashboard
- Make your first request:
curl -H "X-API-Key: lq_your_api_key" \ https://api.lumenquery.io/ledgers?limit=1
REST
Horizon API Endpoints
Accounts
GET
/accounts/{id}GET
/accounts/{id}/transactionsLedgers
GET
/ledgersGET
/ledgers/{sequence}Transactions
GET
/transactionsPOST
/transactionsJSON-RPC
Soroban RPC Methods
Network & Health
getHealthgetNetworkgetLatestLedgerTransactions
simulateTransactionsendTransactiongetTransactionContract Data
getLedgerEntriesgetEventsgetFeeStatsExample: Get Latest Ledger
curl -X POST -H "X-API-Key: lq_your_api_key" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"getLatestLedger"}' \
https://rpc.lumenquery.ioREST
Horizon Rate Limits
| Plan | Req/Min | Req/Month |
|---|---|---|
| Free | 60 | 10,000 |
| Starter | 300 | 100,000 |
| Professional | 1,000 | 1,000,000 |
| Enterprise | 5,000 | Unlimited |
JSON-RPC
Soroban Rate Limits
| Plan | Requests/Minute |
|---|---|
| Free | 30 |
| Starter | 150 |
| Professional | 500 |
| Enterprise | 2,500 |
SDK Integration
Horizon API (JavaScript)
import { Horizon } from '@stellar/stellar-sdk';
const server = new Horizon.Server(
'https://api.lumenquery.io',
{ headers: { 'X-API-Key': 'lq_...' } }
);Soroban RPC (JavaScript)
import { SorobanRpc } from '@stellar/stellar-sdk';
const server = new SorobanRpc.Server(
'https://rpc.lumenquery.io',
{ headers: { 'X-API-Key': 'lq_...' } }
);