Overview
Each entry underchains: in dokrypt.yaml defines a local blockchain node. You can run multiple chains simultaneously for multi-chain development.
Basic Configuration
Engines
Dokrypt supports three EVM node engines:| Engine | Description | Best For |
|---|---|---|
anvil | Foundry’s Anvil | Default. Fastest, most features. |
hardhat | Hardhat Network | Hardhat ecosystem compatibility |
geth | Go-Ethereum | Closest to production |
Chain ID
31337 (Hardhat/Anvil default), 1337 (Geth default).
Block Time
Controls how frequently blocks are produced.| Value | Behavior |
|---|---|
"0s" or omitted | Instant mining (mine on every transaction) |
"1s" - "12s" | Timed block production |
"12s" | Simulates Ethereum mainnet |
Mining Modes
| Mode | Behavior |
|---|---|
auto | Mine a block on every transaction |
interval | Mine at fixed intervals |
manual | Only mine when explicitly requested via dokrypt chain mine |
Accounts
EVM Configuration
Forking
Fork a live network on startup:mainnet, ethereum, sepolia, goerli, polygon, arbitrum, optimism, base, bsc, avalanche.
Genesis Accounts
Pre-fund specific addresses at genesis:Auto-Deploy
Deploy contracts automatically when the chain starts:Multi-Chain Setup
Run multiple chains for cross-chain development:--chain flag to target a specific chain:
Default Ports
Each chain gets a unique RPC port (assigned dynamically). The first chain typically gets port 8545.| Chain (in order) | Default RPC Port |
|---|---|
| First chain | 8545 |
| Second chain | 8546 |
| Third chain | 8547 |