Chisel
Chisel is an interactive Solidity REPL (Read-Eval-Print Loop) for rapid prototyping and debugging. Write and execute Solidity code instantly without compiling full contracts.
When run inside a Foundry project, Chisel uses that project's configuration and dependencies.
Key capabilities
| Feature | Description |
|---|---|
| Interactive execution | Execute Solidity expressions and statements in real-time |
| Variable inspection | Inspect values, types, and raw stack/memory data |
| Forking | Fork any chain to interact with live contracts |
| Session management | Save, load, and export REPL sessions |
| Project integration | Access your project's contracts and dependencies |
Common workflows
Start the REPL
$ chiselFork mainnet
$ chisel --fork-url https://ethereum.reth.rs/rpcEvaluate without entering REPL
$ chisel eval "uint256 x = 1 + 2; x"Load a saved session
$ chisel load my-sessionList cached sessions
$ chisel listQuick example
➜ uint256 x = 10
➜ uint256 y = 20
➜ x + y
Type: uint256
├ Hex: 0x1e
├ Hex (full word): 0x1e
└ Decimal: 30Learn more
- Session management — Save, load, and export sessions
- Forking — Interact with live chain state
- Commands — All available REPL commands
- Reference — Full CLI reference
Was this helpful?
