deploying-contracts-on-base
Installation
SKILL.md
Deploying Contracts on Base
Prerequisites
- Configure RPC endpoint (testnet:
sepolia.base.org, mainnet:mainnet.base.org) - Store private keys in Foundry's encrypted keystore — never commit keys
- Obtain testnet ETH from CDP faucet (testnet only)
- Get a BaseScan API key for contract verification
Security
- Never commit private keys to version control — use Foundry's encrypted keystore (
cast wallet import) - Never hardcode API keys in source files — use environment variables or
foundry.tomlwith${ENV_VAR}references - Never expose
.envfiles — add.envto.gitignore - Use production RPC providers (not public endpoints) for mainnet deployments to avoid rate limits and data leaks
- Verify contracts on BaseScan to enable public audit of deployed code