How to use
- Call any
/v1/*route, e.g.curl https://bscapi.pages.dev/v1/gas - You get HTTP 402 Payment Required with the payment details ($0.001 USDC on Base, payTo address, 300s timeout).
- Pay $0.001 USDC on Base to the payTo address — use an x402 client library like
x402-fetch/x402-axios, or sign the payment yourself. - Retry the same request with header
X-PAYMENT: <base64 payment payload>— you get HTTP 200 with the data.
curl https://bscapi.pages.dev/v1/gas
Zero calls = $0. x402 client libraries handle steps 2–4 automatically.
Routes — $0.001 each
/v1/gas$0.001BSC gas price + latest block + tx cost in BNB (pollable)
View details →
/v1/token-price$0.001Token price, market cap, liquidity, 24h volume via DexScreener (BSC-first)
View details →
/v1/tx$0.001BSC transaction status + receipt summary by hash
View details →
/v1/contract-check$0.001BSC contract safety check: code, name, symbol, supply, owner, paused, flags
View details →
/v1/email-check$0.001Email format + MX record + disposable-domain check (catch-all not checked)
View details →
/v1/ip-lookup$0.001IP geolocation: country, city, ASN, ISP, timezone
View details →
/v1/whois$0.001Domain age, registrar, expiry, nameservers via RDAP
View details →
/v1/qr$0.001QR code PNG generator (returns image/png)
View details →
Payment
x402 v2, exact scheme, USDC on Base (eip155:8453).
Pay to: 0x3B5eC5a983576FCD98275Ff1604a1182ec5B5617