Skip to main content
The API serves both networks from the same deployment, with the network in the path: /v1/mainnet/... or /v1/testnet/.... Most behavior is identical. The rows below are the ones that are not, so a close that works on testnet is not proof it will run the same way on mainnet.

Parity by network

The full per-protocol table, generated from the contract registry, is in Supported.

Paths an operator can pause

On either network, the operator can turn off fee sponsorship, exchange closes through the relay account, Soroban token conversion, or the exit of one protocol while the API keeps running. While a path is off, the plan shows it as a blocker with a code such as exchange_forward_paused, fee_sponsorship_paused or defi_exit_paused, all 503, and close/transactions refuses it before it builds any transaction, so a close is never left half done. A paused Soroban token conversion is reported as soroban_token_conversion_unavailable. Plan again later: nothing about the account changes while a path is paused.

Mainnet go-live checklist

Work through this list with the account types you expect to close. Each item is something the API and the published packages already do.
  1. Use a key made for mainnet. Create a key limited to mainnet on the API keys page, and keep your testnet key for testing. Store it on your server only.
  2. Pin the packages. Install with the ranges in the Quickstart, and read the compatibility policy before each upgrade.
  3. Rehearse the real accounts. Run the plan-only example against each mainnet account first. It reads and plans without building or signing anything, and prints every blocker and decision.
  4. Verify every transaction before signing. Check each one with @lumenwipe/verify against the user’s own inputs and the account read, never against the API’s intent summary. See Verification.
  5. Let the user answer decisions. A plan’s decisionPoints are choices about the user’s assets and destination. Show them, plan again with the answers, and close with the same answers.
  6. Treat exchanges as unavailable. Exchange closes are not available on mainnet: the plan blocks a close to a listed exchange before anything is built. Check mediatorCheck before offering one, and close to a wallet the user controls instead.
  7. Do not rely on sponsored fees. They are not available on mainnet, so the account must hold the XLM for its own fees. When it cannot, the plan reports close_fee_balance_short with the amount to add, and close/transactions refuses with the same code before anything is signed.
  8. Check signing weight. Use the account’s signers and thresholds from each round, so a multisig account stops with InsufficientSignatureWeightError before anything is submitted. See runClose.
  9. Handle an unknown submit outcome. A 504 from submit means the outcome is unknown. Resolve it by hash with GET /v1/mainnet/transactions/{hash} before you build anything new. See Retrying each endpoint.
  10. Record what arrived from the ledger. Read the delivered XLM with close/delivered after the transactions confirm, never from the plan.
  11. Stay within the budget. Size concurrency from RateLimit-Remaining, and wait for Retry-After on every 429 and 503.
  12. Branch on codes, log request ids. Branch on error.code, never on the message, and keep X-Request-Id from every failed call.
  13. Call /v1 paths only. Paths without the prefix are deprecated aliases with a sunset date. See Compatibility and deprecation.