/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 asexchange_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.- 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.
- Pin the packages. Install with the ranges in the Quickstart, and read the compatibility policy before each upgrade.
- 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.
- Verify every transaction before signing. Check each one with
@lumenwipe/verifyagainst the user’s own inputs and the account read, never against the API’sintentsummary. See Verification. - Let the user answer decisions. A plan’s
decisionPointsare choices about the user’s assets and destination. Show them, plan again with the answers, and close with the same answers. - 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
mediatorCheckbefore offering one, and close to a wallet the user controls instead. - 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_shortwith the amount to add, andclose/transactionsrefuses with the same code before anything is signed. - Check signing weight. Use the account’s signers and thresholds from each round, so a multisig account stops with
InsufficientSignatureWeightErrorbefore anything is submitted. See runClose. - Handle an unknown submit outcome. A
504fromsubmitmeans the outcome is unknown. Resolve it by hash withGET /v1/mainnet/transactions/{hash}before you build anything new. See Retrying each endpoint. - Record what arrived from the ledger. Read the delivered XLM with
close/deliveredafter the transactions confirm, never from the plan. - Stay within the budget. Size concurrency from
RateLimit-Remaining, and wait forRetry-Afteron every429and503. - Branch on codes, log request ids. Branch on
error.code, never on the message, and keepX-Request-Idfrom every failed call. - Call
/v1paths only. Paths without the prefix are deprecated aliases with a sunset date. See Compatibility and deprecation.