- Private Key: Your wallet's private key with CELO tokens for gas fees
- CeloScan API Key: Get one at https://celoscan.io/apis (free)
- Create a
.envfile in the root directory:
PRIVATE_KEY=your_private_key_here
CELOSCAN_API_KEY=your_celoscan_api_key_here
CELO_RPC_URL=https://forno.celo.org- Make sure you have CELO tokens in your wallet for gas fees (at least 0.1 CELO recommended)
npm run deploy:celo:mainnetFor testing first:
npm run deploy:celo:alfajoresAfter deployment, you can manually verify:
npx hardhat verify --network celo <CONTRACT_ADDRESS> <PLATFORM_WALLET_ADDRESS>Example:
npx hardhat verify --network celo 0x1234...abcd 0x5678...efghAfter deployment, view your contract at:
- Mainnet: https://celoscan.io/address/<CONTRACT_ADDRESS>
- Testnet: https://alfajores.celoscan.io/address/<CONTRACT_ADDRESS>