Skip to main content

Overview

Each entry under chains: 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:

Chain ID

Common local chain IDs: 31337 (Hardhat/Anvil default), 1337 (Geth default).

Block Time

Controls how frequently blocks are produced.

Mining Modes

Accounts

EVM Configuration

Forking

Fork a live network on startup:
With a custom RPC URL:
Supported network names: 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:
Use --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.