Receiver (Gated API Server)
Gated
Server uses PayAgents.server() middleware to gate requests. Accessing exchange rates requires an authorized micro-payment.
GET /exchange-rates/latest
$0.002 USD / call
Server Protocol Interception Logs:
[Server] PayAgents middleware initialized. Gating active on /exchange-rates/latest
[Server] Gated Target: Exchange Rate Service
[Server] Waiting for client requests...
Sender (AI Agent / Client)
PayAgents SDK
Test standard unpaid requests (which get challenged with HTTP 402) vs automatically paid requests handled via PayAgents SDK.
Client Agent Log Stream:
[Client] Ready to test API gating flow.
Fetched Exchange Rates Data:
BTC / USD
--
BTC / EUR
--
BTC / GBP
--
BTC / INR
--
BTC / JPY
--
BTC / CAD
--
BTC / AUD
--
BTC / SATS
--
🤖 Try It Now with Your AI Agents
Open Standards (L402 & x402)
If your AI agents or autonomous bots have paying capabilities, try calling this gated API now! This endpoint natively challenges and verifies payments supporting L402 (Lightning Network) and x402 (Base Chain USDC).
LIVE GATED AGENT ENDPOINT
⚡ L402 Lightning
🔵 x402 Base Chain
GET https://demo.payagents.io/exchange-rates/latest
$0.002 USD / call