LumenQuery API Documentation

Enterprise-grade Stellar infrastructure. Horizon API for blockchain data, Soroban RPC for smart contracts.

Get API Key
REST

Horizon API

Access accounts, transactions, ledgers, and all blockchain data via REST API.

api.lumenquery.io
JSON-RPC

Soroban RPC

Deploy and invoke smart contracts, simulate transactions, query contract state.

rpc.lumenquery.io

Authentication

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

  1. Create an account at lumenquery.io/auth/signup
  2. Generate an API key from your dashboard
  3. 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}/transactions

Ledgers

GET/ledgers
GET/ledgers/{sequence}

Transactions

GET/transactions
POST/transactions
JSON-RPC

Soroban RPC Methods

Network & Health

getHealthgetNetworkgetLatestLedger

Transactions

simulateTransactionsendTransactiongetTransaction

Contract Data

getLedgerEntriesgetEventsgetFeeStats

Example: 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.io
REST

Horizon Rate Limits

PlanReq/MinReq/Month
Free6010,000
Starter300100,000
Professional1,0001,000,000
Enterprise5,000Unlimited
JSON-RPC

Soroban Rate Limits

PlanRequests/Minute
Free30
Starter150
Professional500
Enterprise2,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_...' } }
);

Need Help?

Have questions or need assistance? We're here to help.