Lotus exchange integration
Use the Lotus V2 testnet to qualify deposits and withdrawals for XPI. Test XPI has no cash value. Before opening a production market, obtain the approved mainnet release and network pins for the chain you intend to list.
Pin the network before accepting funds
Use one reviewed node release and its matching Chronik indexer. Pin the genesis block, block-one checkpoint, signing ChainID, address prefix and RPC network selector. Check them when either service starts or restarts. If they differ, pause deposits and withdrawals until you reconcile the change. Keep the original Lotus network and Lotus V2 separate, including wallet keys and account balances.
Download and verify the Linux testnet node and try local RPC and Chronik reads. Follow the hash byte order documented for the exact release you install.
Credit deposits from confirmed outputs
- Validate Lotus addresses against the selected network before assigning them to customer accounts. The V2 testnet uses the
txpiprefix. - Track the transaction ID and output index together. Credit each matching XPI output once and account in integer atoms. One XPI is 1,000,000 atoms. Identify native assets separately so their quantities never enter the XPI balance.
- Record the confirming block hash and height. Set a minimum confirmation count for credits and reconcile against the current chain after a reorganization or indexer lag. When the node and indexer disagree, pause credits until you can verify the outputs again.
Build, sign and reconcile withdrawals
Use the Lotus V2 transaction and signature rules for the selected chain. Test the amount, fee, destination and change before signing. Keep request IDs and resulting transaction IDs so retries can be reconciled before any new transaction is signed. Confirm the final payment independently through daemon RPC and Chronik, using the transaction ID and output index.
Check the address vectors and browse the protocol documentation.
Before opening a market
Run one complete test deposit and withdrawal. Then repeat after a node and indexer restart, test a duplicate event and a chain reorganization, and prove that your operations team can pause and reconcile balances. Record the release pins, exact test transactions and rollback steps in your listing review.
