Files
web/apps/base-docs/docs/tools/foundry.md
taycaldwell b69c2fa783 Update guides and docs with Sepolia (#233)
* Update guides with Sepolia

* Update docs with Sepolia
2024-01-05 10:08:26 -08:00

1.4 KiB

title, slug, description, keywords
title slug description keywords
Foundry /tools/foundry Documentation for Foundry, a toolchain for smart contract development. Provides instructions on deploying and verifying contracts on Base's mainnet and testnet using Foundry.
Foundry
Forge
Foundry Book
smart contract development
toolchain
Base
Base mainnet
Base testnet
Base network
RPC URL
chain id
deploying contracts
verifying contracts
mainnet
testnet

Foundry

Foundry is a smart contract development toolchain.

With Foundry you can manage your dependencies, compile your project, run tests, deploy smart contracts, and interact with the chain from the command-line and via Solidity scripts.

Check out the Foundry Book to get started with using Foundry with Base.


Using Foundry with Base

Foundry supports Base out-of-the-box.

Just provide the Base RPC URL and Chain ID when deploying and verifying your contracts.

Mainnet

Deploying a smart contract

forge create ... --rpc-url=https://mainnet.base.org/

Verifying a smart contract

forge verify-contract ... --chain-id 8453

Testnet

Deploying a smart contract

forge create ... --rpc-url=https://sepolia.base.org/

Verifying a smart contract

forge verify-contract ... --chain-id 84532