Fees & Revenue

Protocol fee mechanics, revenue streams, and fee administration.

Protocol Fee

IntentGuard has an optional per-verify fee. When a user calls verify_intent, the protocol can charge a small fee in SOL that is transferred from the user to the config PDA.

Default: Free

Fee starts at 0 lamports. Protocol is free to use during adoption phase.

Max: 0.1 SOL

Hard cap enforced on-chain. Admin cannot set fee above 100,000,000 lamports.

Atomic Collection

Fee is collected via system_program::transfer CPI inside verify_intent.

Withdrawable

Admin can withdraw accumulated fees while preserving rent-exempt minimum.

How Fees Work

  1. Admin sets fee via update_fee instruction (0 to 0.1 SOL)
  2. User verifies intent — if fee > 0, SOL transfers from user to config PDA
  3. total_fees_collected counter increments atomically
  4. Admin withdraws accumulated fees via withdraw_fees

On-Chain State

Fee data is stored in the GuardConfig PDA (82 bytes total):

FieldOffsetSizeDescription
verify_fee658 (u64)Fee per verify in lamports
total_fees_collected738 (u64)Lifetime fees collected

Fee Administration

Set Fee (Direct)

# Using fee-admin CLI
npx tsx scripts/fee-admin.ts set-fee 5000000  # 0.005 SOL
npx tsx scripts/fee-admin.ts status

Set Fee (Multisig)

# Using Squads multisig (requires threshold approvals)
npx tsx scripts/squads-admin.ts propose-update-fee 5000000
npx tsx scripts/squads-admin.ts approve 1
npx tsx scripts/squads-admin.ts execute 1

Withdraw Fees

# Direct withdrawal
npx tsx scripts/fee-admin.ts withdraw 500000000  # 0.5 SOL
npx tsx scripts/fee-admin.ts withdraw-all

# Via multisig
npx tsx scripts/squads-admin.ts propose-withdraw-fees 500000000

Revenue Simulation

npx tsx scripts/fee-admin.ts simulate 1000  # 1000 daily verifies

Revenue Streams

StreamTimelineDescription
Free TierLaunchUnlimited commits + verifies (adoption priority)
Protocol FeeMonth 3+Optional per-verify fee (governance controlled)
Premium APIMonth 3+Pro ($49/mo) and Enterprise ($299/mo) tiers
EnterpriseMonth 6+Custom deployment, SLA, dedicated support

Safety Guarantees

Live revenue data: Revenue Dashboard