Build
Run it yourself
Install, add a free Reown project id, and run the whole app on your machine against mainnet.
Configure
Copy apps/web/.env.example to apps/web/.env.local, fill in the first two rows, and add the relayer variables yourself if you want gasless:
| Variable | Needed for |
|---|---|
NEXT_PUBLIC_REOWN_PROJECT_ID | EVM and Solana wallets (free at dashboard.reown.com; add http://localhost:3030 to its domains) |
NEXT_PUBLIC_SITE_URL, NEXT_PUBLIC_DOCS_URL | optional; default to hashi.cash and docs.hashi.cash |
RELAYER_PRIVATE_KEY, BASE_RPC_URL | optional, server-only: the gasless relayer |
Run
pnpm devOpen http://localhost:3030/swap. Quotes are live from mainnet straight away; real swaps use real money in your own wallets.
Checks
pnpm lint
pnpm typecheck
pnpm testThe tests cover addresses and recipient guards, the THORChain memo and Bitcoin Cash deposit rules, Cauldron's fees, route costs and ranking, the relayer's policy, the swap state and the tracker's steps.