Skip to main content
Most Stellar indexers built today ingest ledgers from Stellar RPC’s getLedgers. The mock RPC serves the corpus’s canonical ledgers with exactly the same request and response shapes, so you can point an unmodified indexer at it and replay the corpus with no network, no credentials and no funds.

Hosted

There’s one endpoint per network: /pubnet, /testnet and /local. Each answers with that network’s passphrase from getNetwork.

Local

Or embed it in a test, which is how the wallet-backend pilot uses it:

Methods

Errors use Stellar RPC’s codes and messages, e.g. -32600 with start ledger must be between the oldest ledger: … and the latest ledger: …, so an indexer’s error handling sees what it would see in production.

The ledger range is sparse

The corpus stores only the ledgers its fixtures came from: mainnet 65,474,279 and 65,474,309, and nothing in between. getHealth reports the full span, and getLedgers returns the stored ledgers from startLedger onward, skipping the gaps. The cursor always points at the last ledger returned. Most indexers handle this fine because they request a range and process whatever comes back. If yours insists on contiguous sequences, ask for each fixture’s ledger directly (startLedger = the fixture’s source.ledger, limit = 1), which is what the pilot does.

Limits on the hosted endpoint

300 requests per minute per client, batches of up to 20 requests, bodies up to 64 KB. Running it locally has no limits.