XOD — sandbox for exchanges and developers

There is no test network: only xod-mainnet exists (one set of rules, one genesis, one protection level). A test network with weaker rules would test a different system. Instead, integrate in the sandbox — three tools that work against the real network without risking real money.

1. Small amounts on mainnet

  1. Create a separate sandbox wallet (xod wallet create) — never the production hot wallet.
  2. Fund it with a small amount: 2–10 XOD is enough (fee ≥ 0.0001 XOD per transfer; a new account needs ≥ 1 XOD).
  3. Run the full flow: deposit → wait for final → credit; withdrawal → POST /tx → final; repeat the same transfer (same id, no double credit); let one transfer expire (expiry_height) and see dropped.
  4. Check every refusal code you handle (/dev/api.html, {"error": "CODE"}): bad address, low fee, wrong nonce, expired, foreign network.

2. Offline checks (no network, no money)

  1. Signing: cargo run --release --example sign_transfer -p xod_sdk prints a signed transfer for xod-mainnet (id, body); compare with your own signer byte for byte.
  2. Addresses: x01… is Bech32m with a checksum, 62 characters, lowercase; a one-character change must be refused.
  3. Seal: the light client (xod_light) verifies block headers with the ⅔+1 seal and the account proof against the final state_root — no trust in the node that answered.

3. Your own node

4. Before listing — checklist

  1. Credit only blocks with height ≤ finalized_height; store "processed up to h" and the block hash.
  2. Key deposits by the transfer id; never credit twice.
  3. Withdrawal keys stay on the exchange machine; the node only receives signed transfers.
  4. Two nodes disagree on a final block → stop deposits and withdrawals, contact the team.
  5. Monitor GET /finality and GET /status; if finality stops, pause withdrawals (deposits wait for final anyway).

Full integration guide: /dev/exchanges.html. API: /dev/api.html, /static/api/openapi.yaml. Agents: /llms.txt.