# Foundry

[BASE product page](<https://base.akulich.dev/en/library/foundry/>) · [Resource](<https://github.com/foundry-rs/foundry>)

ID: foundry · Language: en
Schema version: 1 · Data version: cbbe7123b47a5ae80983

This is editorial data. An unknown field neither confirms nor rules out a capability.
dataVersion is a dataset fingerprint, not evidence of a recent fact check.

An Ethereum contract development toolchain with a local chain, tests, and a CLI: it helps test smart contracts before network deployment\.

## Type

Developer CLI

## Entry type

tool

## Separate catalog

No

## [Access conditions](<https://base.akulich.dev/en/library/foundry/#resource-access>)

free

## [What you can use for free](<https://base.akulich.dev/en/library/foundry/#resource-access>)

Local blockchain, contract builds, and tests under the selected license\.

## [Paid features and costs](<https://base.akulich.dev/en/library/foundry/#resource-access>)

Network transactions, RPC providers, and hosting are paid for separately\.

## [Access and limitations](<https://base.akulich.dev/en/library/foundry/#resource-access>)

Local blockchain, contract builds, and tests under the selected license\. Network transactions, RPC providers, and hosting are paid for separately\.

## [Use cases](<https://base.akulich.dev/en/library/foundry/#resource-tasks>)

- Test smart contracts before network deployment
- Compile and test contracts and investigate detected errors

## Category IDs

- software
- infrastructure

## Subcategory IDs

- software\.cli
- infrastructure\.developer

## Tags

- Foundry
- CLI
- Development

## Also known as

- foundry\-rs/foundry
- foundry
- foundry\-ethereum\-toolkit

## [Selection purpose](<https://base.akulich.dev/en/library/foundry/#resource-selection>)

Test smart contracts before network deployment

## [Choose this when](<https://base.akulich.dev/en/library/foundry/#resource-selection>)

- Test smart contracts before network deployment
- Compile and test contracts and investigate detected errors

## [Requirements](<https://base.akulich.dev/en/library/foundry/#resource-selection>)

- Choose the tool for the task; foundryup is the toolchain installation path described in the README\.

## [Limitations](<https://base.akulich.dev/en/library/foundry/#resource-selection>)

- Costs and limits of free use: Network transactions, RPC providers, and hosting are paid for separately\.
- Terms of use: Apache\-2\.0 OR MIT according to the official README; third\-party components retain their own terms\.
- Local Anvil availability does not establish free RPC services or absence of gas costs on a chosen external network\.

## [Questions before use](<https://base.akulich.dev/en/library/foundry/#resource-faq>)

### What can you use for free in Foundry?

Local blockchain, contract builds, and tests under the selected license\.

### What additional costs might arise with Foundry?

Network transactions, RPC providers, and hosting are paid for separately\.

### What terms of use matter for Foundry?

Apache\-2\.0 OR MIT according to the official README; third\-party components retain their own terms\.

### How do you get started with Foundry?

Prepare Solidity contracts and start a local chain for the test scenario\. Compile and test contracts and investigate detected errors\. Save the working command or script and the result criteria\.

### How do Forge, Cast, Anvil, and Chisel differ in Foundry?

Forge builds and tests Solidity projects\. Cast interacts with the EVM, sending transactions and reading chain data\. Anvil starts a local Ethereum node, and Chisel provides a Solidity REPL\. These tools have different roles; a local node separates development from real network interaction\.

## Sources for the selection guide

- [https://github\.com/foundry\-rs/foundry](<https://github.com/foundry-rs/foundry>)
- [https://raw\.githubusercontent\.com/foundry\-rs/foundry/HEAD/README\.md](<https://raw.githubusercontent.com/foundry-rs/foundry/HEAD/README.md>)
- [https://raw\.githubusercontent\.com/foundry\-rs/foundry/HEAD/LICENSE\-MIT](<https://raw.githubusercontent.com/foundry-rs/foundry/HEAD/LICENSE-MIT>)
- [https://www\.open\-source\-tools\.com/](<https://www.open-source-tools.com/>)

## [Possible workflow](<https://base.akulich.dev/en/library/foundry/#resource-scenario>)

Test smart contracts before network deployment\.

A possible workflow; this is not a report of hands-on testing.

## Before you start

- Solidity contracts, expected state changes, and test accounts\.
- A local Foundry environment and a test network without real funds\.

## Steps

1. Prepare Solidity contracts and start a local chain for the test scenario\.
2. Compile and test contracts and investigate detected errors\.
3. Save the working command or script and the result criteria\.

## Check your result

- Tests check successful operations and expected reverts; assertions verify contract state\.
- Local checks do not replace a contract audit; private keys are not written to repositories or logs\.

## [License](<https://base.akulich.dev/en/library/foundry/#resource-license>)

Apache\-2\.0 OR MIT according to the official README; third\-party components retain their own terms\.

## License explanations for the specified scope

### Apache 2\.0 — permissive license with patent terms

You can use and modify the code in commercial and closed\-source projects\. When distributing it, retain the license and relevant notices, identify modified files, and include NOTICE if provided\. Authors grant a limited patent license for their contributions; it does not grant permission to use trademarks\.

[License terms](<https://www.apache.org/licenses/LICENSE-2.0>)

### MIT — permissive license

You can use, modify, distribute, and sell the code, including in a closed\-source commercial product\. When sharing copies or substantial portions of the code, retain the license text and copyright notice\. You do not need to open\-source your entire project; the author provides no warranties\.

[License terms](<https://opensource.org/license/mit>)

## Related resource IDs

- wagmi

## [Sources](<https://base.akulich.dev/en/library/foundry/#resource-sources>)

- [Official source](<https://github.com/foundry-rs/foundry>)
- [Official source](<https://raw.githubusercontent.com/foundry-rs/foundry/HEAD/README.md>)
- [License](<https://raw.githubusercontent.com/foundry-rs/foundry/HEAD/LICENSE-MIT>)
- [Catalog / discovery source](<https://www.open-source-tools.com/>)

## Editorial review date

2026\-10\-06

## Editorial review scope

The purpose, current repository license, and separate terms for code, services, and models have been reviewed\. The product was not run, and no security audit was performed\.

Dates refer to the stated editorial review, not hands-on testing, a product update, or a recent review of all sources.
