Tutorial
Getting Started with LumenQuery: A Complete Guide
Getting started with LumenQuery is straightforward. This guide will walk you through creating your account, generating an API key, and making your first API call.
Step 1: Create Your Account
Visit lumenquery.io/auth/signup and create your free account. You'll get instant access to:
Step 2: Generate an API Key
After signing in, navigate to your dashboard and click "Create API Key." Give it a descriptive name like "Development" or "Production."
Important: Copy your API key immediately—you won't be able to see it again!
Step 3: Make Your First Request
Test your API key with a simple request:
curl -H "X-API-Key: lq_your_api_key" \
"https://api.lumenquery.io/ledgers?limit=1"You should receive a JSON response with the latest ledger information.
Step 4: Integrate with Your Application
Use the official Stellar SDK with LumenQuery:
import { Horizon } from '@stellar/stellar-sdk';
const server = new Horizon.Server('https://api.lumenquery.io', {
headers: { 'X-API-Key': 'lq_your_api_key' }
});
// Load an account
const account = await server.loadAccount('GA...');
console.log(account.balances);Next Steps
Happy building!