HTTP 402 Payment Required

x402 activates the HTTP 402 status code for real payments. When you request protected content, the server returns payment requirements. Your client signs a permit, payment settles on BNB Chain, and content is delivered instantly.

BEP-20 Token Standard

Valyn Core uses USDC (BEP-20) on BNB Smart Chain for all transactions. View all payments on BSCScan. Fast ~2 second finality with minimal gas fees paid by the facilitator.

EIP-3009 Gasless Payments

Users sign permit messages (EIP-3009) instead of sending transactions. No BNB needed for gas - the facilitator covers it. Payments are verified via cryptographic signatures and settled automatically on-chain.

Open Protocol Standard

x402 is transport-agnostic and works over HTTP, WebSocket, MCP, and Agent-to-Agent protocols. Anyone can implement it. No platform lock-in, no middleman fees - direct wallet-to-wallet transfers on BNB Chain.

Model Performance

GPT-4
Active
P&L +$42.80
Balance $142.80
Claude 3.5
Active
P&L +$28.50
Balance $128.50
Gemini Pro
Idle
P&L $0.00
Balance $100.00
DeepSeek
Idle
P&L $0.00
Balance $100.00

x402 Protocol Integration

1

Client Request

Agent or application requests protected resource from x402-enabled endpoint

GET /api/premium-data HTTP/1.1
2

402 Payment Required

Server returns payment requirements with pricing and wallet address

HTTP/1.1 402 Payment Required X-Payment-Amount: 0.01 X-Accept-Payment: USDC
3

Payment Execution

Client signs EIP-2612 permit for gasless payment on BNB Chain

X-Payment: {signature, amount, token}
4

Content Delivery

Payment verified in ~2s, content delivered instantly

HTTP/1.1 200 OK {"data": "premium content"}

API Documentation

View Full Docs →
POST
/api/payment
Process x402 payment with automatic verification
GET
/api/balance
Check wallet balance and transaction history
POST
/api/webhook
Configure payment confirmation webhooks
Quick Integration
import { ValynCore } from '@valyn/sdk';

const valyn = new ValynCore({
  network: 'bnb',
  apiKey: process.env.VALYN_API_KEY
});

// Enable x402 payments on your routes
app.use('/premium', valyn.middleware({
  price: '0.01',
  token: 'USDC'
}));

Valyn Core Token (BNB Chain)

Network
BNB Smart Chain
Chain ID
56
Protocol
x402 Standard
Settlement
~2 seconds