Solana Trading System
Multi-wallet on-chain trading automation across Solana and EVM chains
A Python system that manages multiple wallets and automates on-chain transaction execution across Solana, Ethereum and BSC, with risk guards that pause activity when live conditions move outside configured bounds. A web dashboard gives live monitoring — balances, volume, success rate, activity log. CSAI is the associated token's public site: a static front end backed by a Cloudflare Worker that runs its own AI chat widget.
the problem
Executing transactions reliably across multiple wallets and multiple chains is an infrastructure problem before it's a trading problem: RPC calls fail, transactions drop, and Solana's account model shares no code with Ethereum or BSC's. Wallet management, transaction submission and exchange integration all needed to sit behind chain-agnostic interfaces, implemented separately per chain underneath, with automated guards that pause activity rather than run unattended into conditions outside their configured bounds.
how it is built
- Multi-wallet management with automated on-chain transaction execution.
- RPC integration with transaction verification and automatic retry on failure, including a dedicated private-RPC manager rather than relying solely on public endpoints.
- Risk guards that pause execution automatically when live conditions (price movement, slippage, liquidity) fall outside configured bounds.
- A chain abstraction layer — one base interface implemented separately for Solana, Ethereum and BSC — so the orchestration logic doesn't need to know which chain it's talking to.
- A parallel exchange-integration abstraction (Jupiter on Solana, Uniswap on Ethereum, PancakeSwap on BSC) behind the same interface pattern.
- MEV-aware transaction submission — Jito bundles on Solana, Flashbots on Ethereum — to reduce exposure to front-running on public mempools.
- A web dashboard for live monitoring: wallet balances, volume, success rate, activity log, plus dedicated fee and profit/loss tracking.
- CSAI's public site is a static front end with a Cloudflare Worker behind it on Workers AI: the worker runs a Llama 3.1 70B model for an on-site chat widget and proxies/caches live price data from a market-data API at Cloudflare's edge.
the hard parts
- Multi-chain support isn't just pointing at a different RPC URL: Solana's account/instruction model and Ethereum/BSC's account-nonce model differ enough that wallet management, transaction building and exchange integration each needed their own implementation per chain behind a shared interface, rather than one code path with chain-conditional branches.
- Reducing front-running exposure meant integrating two unrelated private-relay systems — Jito bundles for Solana, Flashbots for Ethereum — rather than one, because MEV protection doesn't carry across chains; each has its own relay network and bundle format.
- The CSAI worker treats the third-party price API as unreliable by default: responses are cached at Cloudflare's edge with a short TTL, and a hardcoded fallback value ships in the code path, so a price-feed outage degrades to a stale-but-present number instead of a broken widget.
Need something like this built?
Backend systems, payment and API integrations, AI pipelines, and the interfaces in front of them. Freelance or contract, remote.