Skip to main content
The Deploying Contracts on Base skill gives your AI coding assistant a complete guide for deploying and verifying smart contracts on Base with Foundry, including common failure modes and fixes.

Install

Terminal
npx skills add base/base-skills

What the skill covers

  • Setting up Foundry for Base Mainnet and Base Sepolia
  • Running forge deploy with the correct RPC and chain ID
  • Verifying contracts on Basescan via forge verify-contract
  • Common deployment failures and how to fix them (gas estimation errors, nonce mismatches, RPC timeouts)

Example prompts

  • “Deploy my ERC-20 contract to Base Sepolia”
  • “Verify my deployed contract on Basescan”
  • “My Foundry deploy is failing with a gas estimation error”
  • “Set up my foundry.toml for Base”

Reference