curl, Node.js 18+ or Python 3 with
requests.
Testnet is free on every plan: up to 10,000 requests a day per organization,
reset at 00:00 UTC, with no credits used. Credits are for Mainnet.
1
Sign up and copy your key
Open app.lumeus.dev and sign in with your email.
Lumeus emails you a six-digit code; there is no password. The first screen
shows your Testnet key (The JavaScript and Python examples below read the same environment variables.
lum_test_...). It is shown once, so save it in your
secret manager. You can create more keys later under API keys.One key works on the Activity API, the Assets API and RPC of its network.
Mainnet needs a separate lum_live_... key. Webhooks use their own whk_...
key; see your first webhook.Set these once in your terminal. The sample values are real Testnet data, so
the read examples return real results.2
Read history and balances
Read the two newest token movements of the sample account from the Activity
API:Then read the same account’s current balances from the Assets API:Every answer carries
Response (trimmed to one record)
Response (trimmed)
read_view, the ledger it reflects. Amounts are strings;
use amount_raw and balance_raw for exact integer math. A 401 means the key
is missing, revoked or for the other network; the message names the right host.3
Call RPC
RPC is standard Stellar JSON-RPC on one endpoint, Check for
POST /:Response
error in every JSON-RPC reply, even with HTTP 200. You can also
use RPC from the Stellar SDKs by passing the key as a header: see
Stellar SDKs.Check your usage
GET /v1/usage on the Activity host reports today’s Testnet requests in its
testnet block. Your Mainnet credits are in the monthly_credits_* fields.
Response (trimmed)
429 rate_limited until 00:00 UTC.
See usage and limits.
Next steps
- Activity API: full history by account, asset, contract or transaction.
- Assets API: holdings, ranked holders and the token registry.
- RPC: current state, simulation and submission.
- Your first webhook: Free includes one Testnet endpoint.
- Recipes: end-to-end tasks in curl, JavaScript and Python.
- Before Mainnet, read usage and limits and plans and billing.
GET /openapi.json, for
example https://api-testnet.lumeus.dev/openapi.json, for SDK generators and
agents.