Deployment
web3market-kit supports two deployment paths: local deployment to Anvil (no auth required) and remote deployment to testnets/mainnets (requires auth). Both use Foundry’s forge toolchain.
Local Deployment (Anvil)
Local deployment works without authentication and is available from two places:
From the workspace menu
Run w3m inside your project directory, then select Deploy > Local (Anvil).
From the post-scaffold menu
After w3m new, select Start dev environment (for projects with a frontend — also deploys locally) or Deploy locally (for contracts-only projects).
What local deployment does
- Starts Anvil on
http://127.0.0.1:8545 - Builds contracts (
forge build) - Deploys via
forge scriptusing the default Anvil private key - Writes deployment to
deployments/31337.json - Runs codegen to update TypeScript bindings
- Shows a deployment summary with contract addresses
The default Anvil private key is used automatically — no environment variables needed.
Remote Deployment (Testnets / Mainnets)
Remote deployment requires authentication via w3m auth.
w3m deploy --chain <chain> [--skip-tests] [--verify] [--vercel]Deployment Pipeline
- Authentication — Validates your API key
- API preflight — Server checks if deployment is allowed for your tier + chain
- Environment validation — Checks for RPC URL and deployer key
- Build —
forge buildincontracts/ - Tests —
forge test(unless--skip-tests) - Deploy —
forge scriptwith--broadcast - Save deployment — Writes to
deployments/{chainId}.json - Register — Reports deployment to the API
- Codegen — Updates TypeScript bindings
- Vercel (optional) — Deploys frontend
Options
| Option | Description |
|---|---|
--chain <chain> | Target chain name (required) |
--skip-tests | Skip running tests before deployment |
--verify | Verify contracts on block explorer |
--vercel | Deploy frontend to Vercel after contracts |
Tier Requirements
| Tier | Allowed Targets |
|---|---|
| Free | Testnets (Sepolia, Base Sepolia, etc.) |
| Pro | All chains including mainnets |
| Enterprise | All chains |
Free tier is fully functional for local development and testnet deployments. Pro is only required for mainnet chains.