stack_start
Start local Ethereum development components: Anvil fork, contract deployment, and frontend dev server for free testing on localhost.
Instructions
Start one or more stack components for LOCAL development.
Components:
fork: Start LOCAL Anvil fork of the chain configured during stack_init (chainId 31337) RUNS: yarn fork --network Example: If you initialized with chain "base", this runs: yarn fork --network base Anvil understands chain names and resolves them to RPC URLs automatically. This creates a local copy of mainnet state - all testing happens here for FREE.
deploy: Deploy contracts to the LOCAL fork (NOT to mainnet!) This is safe and costs nothing - iterate as many times as needed.
frontend: Start the Next.js dev server connected to the local fork
IMPORTANT: All deployment via this tool goes to localhost:8545 (the local fork). This is the development workflow - test everything locally before mainnet.
For MAINNET deployment (after testing):
yarn generate - Create deployer wallet
yarn deploy --network - Deploy to real mainnet
You can start multiple components at once. Order matters: fork should start before deploy.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| components | Yes | Components to start: fork, deploy, frontend |