Foundry is a smart contract development toolchain.

Foundry manages your dependencies, compiles your project, runs tests, deploys, and lets you interact with the chain from the command-line and via Solidity scripts.

📖 Contributing

You can contribute to this book on GitHub.


Getting Started

To get started with Foundry, install Foundry and set up your first project.


This section will give you an overview of how to create and work with existing projects.

Forge Overview

The overview will give you all you need to know about how to use forge to develop, test, and deploy smart contracts.

Cast Overview

Learn how to use cast to interact with smart contracts, send transactions, and get chain data from the command-line.

Anvil Overview

Learn about anvil, Foundry’s local node.

Chisel Overview

Learn how to use chisel, Foundry’s integrated Solidity REPL.


Guides on configuring Foundry.


Tutorials on building smart contracts with Foundry.


Help us improve Foundry: Contributing


References, troubleshooting, and more.

You can also check out Awesome Foundry, a curated list of awesome Foundry resources, tutorials, tools, and libraries!