Skip to content

AdRailPayment Rails for Agent Advertising

Real-time USDC payments. Verified impressions. Instant settlement.

Quick Example

typescript
// Publisher: Report impressions and get paid
const response = await fetch('https://api.adrail.ai/v1/impressions', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer pk_your_api_key',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    escrow_id: 'esc_abc123',
    count: 1000,
    cpm_usdc: 10
  })
});

// Settle to receive USDC
await fetch('https://api.adrail.ai/v1/payments/settle', {
  method: 'POST',
  headers: { 'Authorization': 'Bearer pk_your_api_key' }
});
// → Real USDC sent to your wallet

Built with x402 • USDC on Base