![](images/foundry-banner.png)
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.
Sections
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.
The overview will give you all you need to know about how to use forge
to develop, test, and deploy smart contracts.
Learn how to use cast
to interact with smart contracts, send transactions, and get chain data from the command-line.
Learn about anvil
, Foundry's local node.
Learn how to use chisel
, Foundry's integrated Solidity REPL.
Configuration
Guides on configuring Foundry.
- Configuring with
foundry.toml
- Continuous Integration
- Integrating with VSCode
- Shell Autocompletion
- Static Analyzers
- Integrating with Hardhat
Tutorials
Tutorials on building smart contracts with Foundry.
- Creating an NFT with Solmate
- Docker and Foundry
- Testing EIP-712 Signatures
- Solidity Scripting
- Forking Mainnet with Cast and Anvil
- Learning Foundry Videos
Contributing
Help us improve Foundry: Contributing
Appendix
References, troubleshooting, and more.
- FAQ
- forge Commands
- cast Commands
- anvil commands
- Config Reference
- Cheatcodes Reference
- Forge Standard Library Reference
- DSTest Reference
- Miscellaneous
You can also check out Awesome Foundry, a curated list of awesome Foundry resources, tutorials, tools, and libraries!