Skip to main content
Lumeus RPC is hosted Stellar JSON-RPC. Use it to read current ledger state, simulate and submit transactions, and read recent ledgers, transactions and events. Every request is one POST / to the RPC host for your network, with your lum_ key in the Authorization header. The official Stellar SDKs work unchanged once they send the key; see Stellar SDKs.

First call

Set these once in your terminal. The sample values are real Testnet data, so the read examples return real results.
Response
Always send an id. A request without one is a JSON-RPC notification: the method runs and is charged, but the answer is 204 with an empty body.

Responses

Check the HTTP status first, then look for error in the JSON-RPC body. Lumeus errors keep the JSON-RPC shape. error.data is the machine-readable code, and error.request_id matches the X-Request-Id header:
A node error arrives with HTTP 200. For example, getEvents with a startLedger outside retention:
The node’s wording differs by method (getTransactions and getLedgers say “start ledger (1) must be between the oldest ledger …”), so branch on the code and the HTTP status, not on the message. The full code list is in RPC errors. For a sendTransaction whose answer was lost, see submit transactions.

Batches

Send a JSON array of 1 to 20 requests to make several calls at once. Each child gets its own response, matched by id.
Response
  • Each child counts as one request against your RPC rate limit (Free: 30 per minute) and, on Testnet, toward the daily Testnet cap, so a batch of 2 lowers RateLimit-Remaining by 2. A batch that would cross either limit is refused whole.
  • Each child is charged its own credits.
  • Children run one after another under a shared deadline and a 64 MiB limit for the whole response.

History and retention

RPC keeps up to about 7 days of recent ledgers, transactions and events (ledgerRetentionWindow is 120,960 ledgers). getHealth returns the current oldestLedger and latestLedger, and oldestLedger is the authority: after a node rebuild the window can be shorter until it fills again. For older account and contract history, use the Activity API. For balances and holders, use the Assets API.

Next