← Back to projects
2025
CoinWallet
Modular Chia wallet for trading in Rust
The Challenge
The Chia ecosystem lacked tooling that was actually usable for trading. Existing wallets were not designed for automation, fine-grained offer handling, or modular reuse across other applications.
The Approach
The main design challenge was separating what should stay generic from what should remain specific to trading:
- a reusable coin engine for low-level coin and offer management (split/combine, fees, XCH/CAT/offers)
- a CoinWallet-specific orchestrator for trading logic and offer creation/acceptance flows
- a peer manager designed to favor higher-quality nodes and keep market data as fresh as possible
- full CAT coin lineage resolution, persisted in the database to avoid repeated expensive lookups
- real-time offer state tracking through network peers and mempool observation
The Result
A working wallet with market tracking and offer management. The chosen architecture makes it realistic to extract a reusable micro-wallet for other Chia applications. The project is paused just before the trading bot, but the modular foundation is already in place.
Tech Stack
RustChia SDKSQLiteAsyncP2P Networking