Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.
Foundry is a blazing fast, portable and modular toolkit for Ethereum application development written in Rust.
Blazing fast, portable and modular toolkit for Ethereum application development, written in Rust.
curl -L https://foundry.paradigm.xyz | bash
foundryupSee the installation guide for more details.
To verify a downloaded release archive or container image, see Verifying Releases.
Initialize a new project, build and test:
forge init counter && cd counter
forge build
forge testInteract with a live network:
cast block-number --rpc-url https://eth.merkle.io
cast balance vitalik.eth --ether --rpc-url https://eth.merkle.ioFork mainnet locally:
anvil --fork-url https://eth.merkle.ioRead the Foundry Docs to learn more.
With VS Code installed, run forge lsp from your Solidity project's terminal.
Forge opens that project in a VS Code Extension Development Host with its bundled
Solidity extension. No Foundry checkout, extension build, or separate Solar
installation is needed. See the editor guide for setup and
client development.
For other editors, configure the Solidity language server command as
forge lsp --stdio. Bare forge lsp also retains server mode when standard input
is redirected; forge lsp --vscode explicitly opens VS Code. Solar uses
foundry.toml, workspace folders, remappings, and evm_version from the project
automatically.
Solar's default flycheck runs forge lint --json with the same Forge executable
that started the server. Solar's existing initializationOptions.forgePath
option overrides that executable.
forge lsp follows Forge's normal environment setup, global-option parsing, and
command dispatch. In server mode, project dotenv warnings use stderr, leaving
stdout reserved for the LSP transport.
Contributions are welcome and highly appreciated. To get started, check out the contributing guidelines.
Join our [Telegram][tg-url] to chat about the development of Foundry.
Having trouble? Check the Foundry Docs, join the [support Telegram][tg-support-url], or open an issue.
feat(browser wallet): show target network on signing requests
feat: support Azure Key Vault signer (--azure)
bug(`cast`): `cast run` does not work sometimes with weird errors (lack of funds, nonce too low, etc.)
meta(invariants): tracking issue for improvements to invariant testing
meta(script): tracking issue for script improvements
Key Anvil's forked log cache by Filter again after the next Alloy release
bug(`anvil`): historical state includes anvil_set* changes made after the block
Foundry scripts use incorrect pre-simulated values
forge script --resume: positional receipt cursor can treat a reverted tx as complete and skip an already-mined later one
meta(anvil): tracking issue for Anvil improvements