Skip to main content
This guide will walk you through creating your first campaign on Oak Network using direct smart contract integration via frontend.

Prerequisites

Before creating a campaign, ensure you have:
  • Wallet Setup: MetaMask or similar wallet connected to Celo
  • Test Tokens: CELO testnet tokens for gas fees
  • Campaign Data: Goal amount, timeline, and description ready
  • Platform Selection: Choose which platforms to integrate with

Step 1: Environment Setup

Install Dependencies

Contract Addresses

Initialize Provider and Signer

Step 2: Contract ABI Setup

Campaign Info Factory ABI

Treasury Factory ABI

Step 3: Prepare Campaign Data

Basic Campaign Information

Campaign Validation

Step 4: Create the Campaign

Initialize Contracts

Basic Campaign Creation

Advanced Campaign Creation with Treasury

Step 5: Configure Campaign Settings

Initialize Campaign Contract

Update Campaign Parameters

Add Platform Data

Step 6: Monitor Campaign Status

Check Campaign Information

Monitor Campaign Events

Step 7: Launch and Manage Campaign

Launch Campaign

Manage Campaign During Active Phase

Step 8: Handle Campaign Completion

Check Campaign Status

Best Practices

Campaign Design

  1. Realistic Goals: Set achievable funding targets
  2. Clear Timeline: Provide sufficient time for funding
  3. Compelling Description: Write clear, engaging campaign descriptions
  4. Appropriate Rewards: Offer valuable, achievable rewards

Security

  1. Secure Keys: Use hardware wallets for campaign management
  2. Regular Monitoring: Monitor campaign status regularly
  3. Backup Plans: Have contingency plans for emergencies
  4. User Education: Educate users about the platform

Gas Optimization

  1. Batch Operations: Combine multiple operations when possible
  2. Gas Estimation: Always estimate gas before transactions
  3. Error Handling: Implement proper error handling for failed transactions
  4. Retry Logic: Implement retry logic for network issues

Troubleshooting

Common Issues

Debugging

Next Steps