Skip to content
Logo

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

FeatureDescription
Interactive executionExecute Solidity expressions and statements in real-time
Variable inspectionInspect values, types, and raw stack/memory data
ForkingFork any chain to interact with live contracts
Session managementSave, load, and export REPL sessions
Project integrationAccess your project's contracts and dependencies

Common workflows

Start the REPL
$ chisel
Fork mainnet
$ chisel --fork-url https://ethereum.reth.rs/rpc
Evaluate without entering REPL
$ chisel eval "uint256 x = 1 + 2; x"
Load a saved session
$ chisel load my-session
List cached sessions
$ chisel list

Quick example

uint256 x = 10
uint256 y = 20
➜ x + y
Type: uint256
├ Hex: 0x1e
Hex (full word): 0x1e
└ Decimal: 30

Learn more