Overview
dokrypt.yaml is the central configuration file for every Dokrypt project. It defines your blockchain nodes, services, settings, test configuration, plugins, and lifecycle hooks.
Full Schema
Environment Variable Interpolation
Use${VAR} syntax to reference environment variables:
Template Variables
Configuration templates (.tmpl files) support Go template syntax:
{{chain.rpc_url}} style variables for service configurations that need to reference chain endpoints.
Profiles
Profiles let you override settings for different environments:Validation
Validate your configuration:Defaults
If not specified, these defaults are applied:| Setting | Default |
|---|---|
runtime | docker |
log_level | info |
accounts | 10 |
account_balance | 10000 (ETH) |
engine | anvil |
chain_id | 31337 |
block_time | 0s (instant mining) |
hardfork | shanghai |
mining.mode | auto |
test.parallel | 4 |