> **Can't find what you're looking for?** Use `search_docs` on the docs MCP server at `https://www.getfoundry.sh/api/mcp` to find what you need.
>
> **Have feedback?** Use `submit_feedback` on the same MCP server.

## Guides

Practical guides for common workflows and advanced Foundry patterns.

### Deployment

[Deploying Contracts](/guides/deploying-contracts): Deploy from local to testnet to mainnet with verification and deterministic addresses.

[Browser Wallet Signing](/guides/browser-wallet): Send Cast and Forge transactions through an injected browser wallet.

[Deterministic Deployments (CREATE2)](/guides/deterministic-deployments-using-create2): Deploy to predictable addresses across multiple networks using CREATE2.

[Multi-Chain Deployments](/guides/multi-chain-deployments): Deploy the same contracts across multiple networks with per-chain configuration.

[Upgrading Contracts](/guides/upgrading-contracts): Implement proxy patterns and verify storage layout compatibility.

### Testing

[Code Coverage](/guides/coverage): Generate accurate summaries, LCOV files, per-test coverage attribution, and uncovered-item gap reports.

[Fork Testing](/guides/fork-testing): Test against live chain state, impersonate accounts, and handle time-sensitive logic.

[Fuzz Corpus Workflow](/guides/fuzz-corpus): Persist, replay, inspect, minimize, and compare fuzz and invariant corpora.

[Mutation Testing](/guides/mutation-testing): Evaluate test-suite strength by generating mutants and interpreting survivors.

[Invariant Testing](/guides/invariant-testing): Write effective invariant tests with handler patterns and ghost variables.

[Symbolic Testing](/guides/symbolic-testing): Turn symbolic counterexamples into reproducible tests and durable CI artifacts.

[Branching Tree Technique](/guides/branching-tree-technique): Organize test suites as decision trees and scaffold them with Bulloak.

### Networks & Payments

[Tempo](/guides/tempo): Configure Tempo projects, transactions, tokens, policies, keychains, and debugging.

[MPP-backed RPC Endpoints](/guides/mpp): Use Foundry with HTTP 402 payment-gated RPC endpoints through MPP.

### Debugging & Optimization

[Debugging Transactions](/guides/debugging-transactions): Replay and debug failed mainnet transactions with trace analysis.

[Gas Optimization](/guides/gas-optimization): Profile gas usage and optimize with snapshots and the IR pipeline.

[Stack Too Deep](/guides/stack-too-deep): Understand and fix stack too deep errors with practical solutions.

### Environment

[Docker & Containers](/guides/docker): Run Foundry in Docker for reproducible builds and CI environments.

[Keeping Secrets Out of Plaintext](/guides/encrypted-env): Use $\{VAR} references, a secrets manager and encrypted keystores instead of a plaintext .env file.

### Migrations

[Foundry v1.0](/guides/migrations/foundry-v1): Breaking changes and upgrade guidance for Foundry v1.0.
