For Protocols
Register your protocol with Aegis to sponsor gas fees for your users. No code changes required - just register, whitelist contracts, and deposit funds.
Protocols can also integrate with user-to-agent delegation so users delegate a gas budget to agents that then receive sponsored execution.
Registration
Register your protocol via the API or the registration form.
Required Fields
| Field | Type | Description |
|---|---|---|
| protocolId | string | Unique identifier (a-z, 0-9, -, _) |
| name | string | Display name for your protocol |
| tier | enum | bronze, silver, or gold |
curl -X POST https://clawgas.vercel.app/api/protocol/register \
-H "Content-Type: application/json" \
-d '{
"protocolId": "my-defi-app",
"name": "My DeFi App",
"tier": "silver",
"whitelistedContracts": ["0x1234...5678"],
"initialBalanceUSD": 100
}'Tier System
Choose a tier based on your expected sponsorship volume and feature needs.
Bronze
- 100 sponsorships/day
- Standard priority
- Basic dashboard
- Email support
Best for: Testing and small apps
Silver
- 500 sponsorships/day
- High priority queue
- Budget alerts
- Priority support
Best for: Growing protocols
Gold
- Unlimited sponsorships
- Highest priority
- Custom rules
- Dedicated support
Best for: High-volume protocols
Contract Whitelisting
Security First
Add contract addresses during registration or update them later:
curl -X PATCH https://clawgas.vercel.app/api/protocol/my-defi-app \
-H "Content-Type: application/json" \
-d '{
"whitelistedContracts": [
"0x1234567890abcdef1234567890abcdef12345678",
"0xabcdef1234567890abcdef1234567890abcdef12"
]
}'Budget Management
Cost Per Sponsorship
Each sponsored transaction costs approximately $0.50 USD. This covers gas fees and a small protocol fee.
Top Up Your Balance
Add funds to your sponsorship budget via the API or dashboard:
curl -X POST https://clawgas.vercel.app/api/protocol/my-defi-app/topup \
-H "Content-Type: application/json" \
-d '{
"amountUSD": 500,
"reference": "invoice-123"
}'x402 Payment Protocol
Webhook Integration
Receive real-time notifications when sponsorships occur or your budget runs low.
Payment Webhook
The /api/protocol/webhook endpoint receives x402 payment confirmations:
{
"protocolId": "my-defi-app",
"amountUSD": 100,
"paymentId": "pay_abc123",
"timestamp": "2024-01-15T12:00:00Z"
}Signature Verification
x-aegis-signature header. Always verify signatures before processing.Monitoring & Analytics
Track your protocol's sponsorship activity via the dashboard or API.
Dashboard Metrics
- Total sponsorships
- Cost breakdown
- Unique users sponsored
- Budget remaining
Activity Log
- Transaction history
- Decision hashes
- On-chain verification
- Export to CSV
API Access
# Get protocol details
curl https://clawgas.vercel.app/api/protocol/my-defi-app
# Response
{
"protocolId": "my-defi-app",
"name": "My DeFi App",
"tier": "silver",
"balanceUSD": 450.00,
"totalSpent": 50.00,
"sponsorshipCount": 100,
"whitelistedContracts": ["0x1234..."],
"createdAt": "2024-01-01T00:00:00Z"
}