Overview
The Request Network API uses a reference-based payment detection system that automatically monitors blockchain transactions to detect when payments are made to your requests. This works across supported blockchains and handles payment matching automatically.How It Works
1. Payment Reference Generation
When you create a request, the API automatically generates a unique payment reference (16-character identifier). This reference is what links on-chain payment transactions to your request. Example:0x1234567890abcdef
2. Blockchain Monitoring
The API continuously monitors supported blockchains using subgraphs that scan for transactions containing payment references. This happens automatically in the background. Monitoring includes:- transaction scanning
- payment reference matching
- amount and currency validation
3. Automatic Detection
When someone makes a payment and includes the payment reference in their transaction, the system:- Detects the transaction
- Validates payment details (amount, currency, recipient)
- Updates request status (for example partially paid or fully paid)
- Triggers your configured webhooks
4. Real-time Status Updates
Once a payment is detected, your request status is updated and you can retrieve the latest information via:- API Queries:
GET /v2/request/{requestId} - Webhooks: receive updates on your configured endpoints
Crosschain Payment Detection
All crosschain payments using Request Network API use the ERC-20 Fee Proxy contract as the last payment leg, so payment detection works out of the box. How it works:- Payer initiates payment on source chain (e.g., Polygon)
- Crosschain bridge transfers funds to destination chain (e.g., Base)
- Final payment uses ERC-20 Fee Proxy with payment reference
- Payment detection system identifies the transaction
- Request status updated automatically
Webhook Notifications
Configure webhooks to receive real-time notifications for payment events:Payment Confirmed
Full payment received and confirmed on blockchain
Payment Partial
Partial payment received (less than expected amount)
Payment Failed
Payment transaction failed or reverted
Payment Refunded
Payment was refunded to the payer
Integration Benefits
Zero Configuration
Payment detection happens automatically
Multi-blockchain
Works across supported chains
Real-time Updates
Fast detection and status updates
Reliable Infrastructure
Built on blockchain indexing infrastructure
Whatβs Next?
Webhooks
Configure webhook notifications for payment events
Query Payments
Manually check payment status via API
Supported Chains
View all supported networks and currencies