deploying-contracts-on-base

Deploy and verify Solidity smart contracts on Base using Foundry.

104|114|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/base/skills --skill deploying-contracts-on-base
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deploying-contracts-on-base
Source: https://github.com/base/skills/tree/main/skills/deploying-contracts-on-base
Command: npx skills add https://github.com/base/skills --skill deploying-contracts-on-base

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the complex process of deploying and verifying smart contracts on the Base blockchain network, making it accessible for developers.

Core Features & Use Cases

  • Contract Deployment: Deploys Solidity contracts to Base Mainnet and Sepolia testnet using Foundry.
  • Contract Verification: Automatically verifies deployed contracts on BaseScan for transparency and auditability.
  • Testnet Faucet Integration: Guides users on obtaining testnet ETH from the CDP Faucet for gas fees.
  • Security Best Practices: Emphasizes secure handling of private keys and API keys.
  • Use Case: A developer needs to deploy their new ERC-20 token contract to Base Mainnet and ensure it's verified on BaseScan.

Quick Start

Use the deploying-contracts-on-base skill to deploy the contract located at src/MyContract.sol:MyContract to the Base Sepolia testnet using your configured keystore account and verify it on BaseScan.

Frequently Asked Questions about deploying-contracts-on-base

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy a smart contract to the Base blockchain using Foundry?

To deploy a smart contract to the Base blockchain using Foundry, configure your keystore account and target either the Base Mainnet or Sepolia testnet. This process streamlines execution and automatically verifies the deployment on BaseScan for transparency.

How do I get testnet ETH for deploying contracts on Base Sepolia?

You can acquire testnet ETH for Base Sepolia deployments by using the CDP faucet. This provides the necessary gas fees to execute transactions and validate your smart contracts on the testnet before moving to Mainnet.

How do I verify deployed contracts on BaseScan?

You verify deployed contracts on BaseScan by configuring a BaseScan API key within your deployment workflow. This automates the verification process, ensuring your contract source code is transparent and auditable on the Base blockchain.

Do I need to configure a BaseScan API key to verify my Solidity contracts?

Yes, configuring a BaseScan API key is required to verify your Solidity contracts on the Base network. This key facilitates automated verification on BaseScan, ensuring your deployed source code is transparent and auditable.

What are common errors when deploying to Base Mainnet and how do I troubleshoot them?

Common deployment errors to Base Mainnet often involve insufficient gas or incorrect private key configurations. Troubleshooting these deployment issues requires secure key management and ensuring your Foundry environment targets the correct Base network RPC.