Multi-chain wallets
Test and ship to production
Run the full flow on testnets, choose an architecture, and work through a launch checklist.
Test on testnets first
Enable a testnet such as ethereum-sepolia for a development project, fund a test wallet from a public faucet, and run the full create, read, and send flow. The code is identical on mainnet; only the chain ID changes. Remember that prices, DeFi, swaps, and NFTs are mainnet-only, so hide those features in your testnet build or expect unsupported_capability. The Testnet dry run recipe walks through it step by step.
Recommended architecture
- The app runs
@gray3/clientand@gray3/keystore. Keys and signing stay on the device. - Your backend authenticates your users, holds the Gray3 secret key, and exposes only the endpoints your app needs, such as "portfolio for my addresses" and "broadcast this signed transaction".
- Your backend calls the Gray3 Cloud API with
@gray3/cloud, caches slow-changing data, and applies your own per-user limits.
Production checklist
- Separate projects and keys for staging and production.
- Secret keys are stored in a secrets manager and never shipped to clients.
- The networks enabled in Console match the chains your UI offers.
- Users are prompted to back up their recovery phrase before receiving funds.
- Amounts are converted to base-unit integer strings before every prepare call.
- Retries use exponential backoff and honor
retry-afteron429. - You handle
402 credits_exhaustedand monitor credit usage in Console. - Key rotation is documented and has been rehearsed by your team.