x402 Payments
Overview
Sending Payments
Basic Payment
const payment = await vault.x402.send({
from: 'acc_7k3m9n2p4q1r',
to: 'vercel.com.x402',
amount: 250,
currency: 'USDC',
memo: 'Pro plan subscription - March 2026'
});
console.log(`Payment ID: ${payment.id}`);
console.log(`Settled in: ${payment.settlementTime}ms`);
console.log(`TX Hash: ${payment.x402TxHash}`);Payment with Metadata
Agent-to-Agent Payments
Direct Transfer
Pooled Payments
Payment Status & Tracking
Check Payment Status
Real-Time Status Updates
Payment History
Payment Confirmations
Cryptographic Proof
Verify Payment On-Chain
Advanced Payment Features
Scheduled Payments
Conditional Payments
Escrow Payments
Payment Batching
Batch Multiple Payments
Cross-Currency Payments
Automatic Conversion
Payment Limits & Controls
Velocity Limits
Merchant Whitelisting
Payment Notifications
Webhooks
Error Handling
Common Payment Errors
Retry Logic
Performance & Reliability
Settlement Speed
Currency
Average
p95
p99
Reliability
Best Practices
1. Idempotency
2. Balance Checks
3. Webhook Verification
Next Steps
Last updated
