x402 protocol
Autonomous Payments for AI Agents and Users
AutoIncentive leverages the x402 protocol to enable seamless, gasless cryptocurrency payments for both human users and AI agents. This open standard from the Coinbase ecosystem powers our payment infrastructure, making it easy for agents to pay for services and for users to receive rewards.
What is x402?
x402 is an open standard for safer, more composable authorization and transaction flows. It enables:
Gasless Transactions - Users don't need to pay gas fees
Autonomous Payments - AI agents can pay for services automatically
Micropayments - Efficient small-value transactions
Signature-Based Authorization - Secure EIP-712 signed payment requests
Multi-Chain Support - Works across multiple blockchain networks
How AutoIncentive Uses x402
AutoIncentive integrates x402 at the core of our payment infrastructure, enabling both our communication system and AI agent platform to process payments seamlessly.
Payment Flow Architecture
User/Agent Request
↓
CAgent (AutoIncentive Agent)
↓
x402 Payment Processing
↓
CFacilitator (Payment Validation)
↓
CBackbone (Service Execution)
↓
Service DeliveredBenefits for Clients
No Gas Fees for Users
Users never pay gas fees when receiving rewards or making payments through AutoIncentive. All transaction costs are handled by the platform using x402's gasless transaction model.
Example:
User completes an engagement action (like, retweet, comment)
AI agent verifies the action
Reward is sent via x402 — user receives full amount, no gas deducted
Transaction is fast and cost-effective
Multi-Chain Flexibility
x402 supports multiple blockchain networks, allowing AutoIncentive to operate across different chains while maintaining a consistent payment experience.
Supported Networks:
Solana (Primary)
Base (via Coinbase Facilitator)
Ethereum and EVM-compatible chains
Additional networks via third-party facilitators
Programmable Payments
x402 enables programmable payment flows that integrate seamlessly with our AI agents:
Conditional Payments - Pay only when conditions are met
Automated Distribution - Agents can distribute rewards automatically
Batch Processing - Efficient handling of multiple payments
Payment Scheduling - Schedule payments for future execution
Agent Integration
AutoIncentive's AI agents use x402 to autonomously pay for services and distribute rewards without human intervention.
How Agents Use x402
Service Payment Flow
When an AI agent needs to use a service (SMS, calls, messaging):
Agent Request → CAgent Processes → x402 Payment → CFacilitator → Service ExecutedExample: Sending an SMS
Agent determines it needs to send an SMS
CAgent collects parameters (recipient, message, service type)
CAgent creates x402 payment request
Payment is authorized via EIP-712 signature
CFacilitator validates payment and forwards to CBackbone
SMS is sent, confirmation returned to agent
Reward Distribution
AI agents autonomously distribute rewards to users:
Action Verified → Agent Calculates Reward → x402 Payment → User Receives TokensExample: X Engagement Agent
User likes/retweets a tweet
Agent verifies engagement through X API
Agent calculates reward amount
Agent creates x402 payment for user's wallet
Payment is processed gaslessly
User receives tokens instantly
Autonomous Call Connections
Agents can autonomously connect phone numbers using x402:
Agent Decision → x402 Payment → CFacilitator → CBackbone → Call ConnectedExample: Service Routing
User requests professional assistance via chat
Agent identifies appropriate service provider
Agent collects user's phone number
Agent pays via x402 for call connection service
Both parties are called and connected anonymously
Service is delivered without manual intervention
Agent Payment Capabilities
Real-Time Payment Processing
Agents can make payments instantly when conditions are met
No manual approval required
Automated verification and execution
Multi-Service Payments
Agents can pay for multiple services in sequence
Batch payments for efficiency
Conditional payment execution
Payment Scheduling
Agents can schedule payments for future execution
Recurring payment support
Time-based payment triggers
Technical Implementation
x402 Integration Points
CAgent (AutoIncentive Agent)
Role: Payment initiator and processor
Function: Creates x402 payment requests
Capabilities:
Generate EIP-712 signatures
Calculate payment amounts
Submit payment requests
Handle payment confirmations
CFacilitator (Payment Orchestrator)
Role: Payment validation and routing
Function: Validates x402 payments and routes to services
Capabilities:
Verify payment signatures
Validate payment amounts
Route to appropriate services
Return execution confirmations
CBackbone (Service Platform)
Role: Service execution
Function: Executes services after payment validation
Capabilities:
Receive validated payment requests
Execute services (SMS, calls, messaging)
Return service execution results
Payment Request Structure
{
// Payment details
amount: string, // Payment amount
currency: string, // Token/currency type
recipient: string, // Recipient address
// x402 specific
signature: string, // EIP-712 signature
message: object, // Signed message structure
facilitator: string, // Facilitator address
// Service details
service: string, // Service type (sms, call, etc.)
parameters: object // Service-specific parameters
}Security Features
EIP-712 Signatures
All payments use typed structured data signing
Prevents signature replay attacks
Domain separation for security
Human-readable transaction data
Payment Validation
Multi-layer verification
Signature validation
Amount verification
Recipient confirmation
Service parameter validation
Fraud Prevention
Rate limiting on payments
Amount limits per transaction
Wallet whitelisting (optional)
Transaction monitoring
Use Cases
For Users
Earning Rewards
Complete engagement actions
Receive instant x402 payments
No gas fees deducted
Transparent reward tracking
Service Payments
Pay for communication services
Gasless transaction experience
Fast payment processing
Multi-chain support
Agent Interactions
Interact with AI agents
Receive payments automatically
No manual claim process
Instant reward delivery
For AI Agents
Service Consumption
Pay for SMS, calls, messaging
Autonomous payment processing
No manual intervention needed
Real-time service access
Reward Distribution
Distribute rewards to users
Automated payment execution
Conditional payment logic
Batch payment processing
Service Routing
Connect users to services
Pay for connection services
Handle payment automatically
Track service delivery
Advantages Over Traditional Payments
Traditional Payment Issues
❌ High gas fees for small transactions
❌ Slow confirmation times
❌ Complex wallet management
❌ Manual approval required
❌ Limited automation
x402 Benefits
✅ Gasless transactions
✅ Instant processing
✅ Simple integration
✅ Autonomous execution
✅ Full automation support
Supported Facilitators
AutoIncentive works with multiple x402 facilitators to ensure reliable payment processing:
Coinbase Hosted Facilitator - Base network support
PayAI Facilitator - AI agent optimized
thirdweb Facilitator - Multi-chain support
Custom Facilitators - For specific use cases
Getting Started
For Users
Connect Your Wallet
Connect any Solana or EVM-compatible wallet
No special setup required
x402 payments work automatically
Start Earning
Complete engagement actions
Receive x402 payments instantly
No gas fees, full rewards
For Developers
Integrate x402 SDK
npm install @coinbase/x402Configure Facilitator
Choose a facilitator
Set up payment endpoints
Configure signature domain
Create Payment Requests
Generate EIP-712 signatures
Submit payment requests
Handle confirmations
For AI Agents
Configure Agent Wallet
Fund agent wallet
Set payment limits
Configure service parameters
Enable x402 Payments
Integrate x402 SDK
Configure payment flows
Set up service routing
Deploy and Monitor
Deploy agent
Monitor payment activity
Track service usage
Resources
Official x402 Resources
AutoIncentive Integration
Community Resources
Awesome x402 - Curated x402 resources
x402 Discord - Community support
x402 Reddit - Discussions and updates
Security & Best Practices
Security Recommendations
✅ Always verify payment signatures
✅ Validate payment amounts
✅ Use rate limiting
✅ Monitor for suspicious activity
✅ Keep facilitator keys secure
Best Practices
Use official x402 SDKs
Implement proper error handling
Log all payment transactions
Test in development environment
Monitor payment success rates
FAQ
Built on x402 | Powered by AutoIncentive | Autonomous Payments for Everyone
Last updated
