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
- Create a separate sandbox wallet (
xod wallet create) — never the production hot wallet. - Fund it with a small amount: 2–10 XOD is enough (fee ≥ 0.0001 XOD per transfer; a new account needs ≥ 1 XOD).
- Run the full flow: deposit → wait for
final→ credit; withdrawal →POST /tx→final; repeat the same transfer (sameid, no double credit); let one transfer expire (expiry_height) and seedropped. - 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)
- Signing:
cargo run --release --example sign_transfer -p xod_sdkprints a signed transfer forxod-mainnet(id, body); compare with your own signer byte for byte. - Addresses:
x01…is Bech32m with a checksum, 62 characters, lowercase; a one-character change must be refused. - Seal: the light client (
xod_light) verifies block headers with the ⅔+1 seal and the account proof against the finalstate_root— no trust in the node that answered.
3. Your own node
- An exchange node package (signed 2 of 3 by the team keys, reproducible build) is provided on request; it is not published on GitHub. Until then use two public nodes and compare the hash of the final block at the same height.
4. Before listing — checklist
- Credit only blocks with height ≤
finalized_height; store "processed up to h" and the block hash. - Key deposits by the transfer
id; never credit twice. - Withdrawal keys stay on the exchange machine; the node only receives signed transfers.
- Two nodes disagree on a final block → stop deposits and withdrawals, contact the team.
- Monitor
GET /finalityandGET /status; if finality stops, pause withdrawals (deposits wait forfinalanyway).
Full integration guide: /dev/exchanges.html. API: /dev/api.html, /static/api/openapi.yaml. Agents: /llms.txt.