x402 Protocol

Accept TRON payments
with one HTTP header

First x402 facilitator for TRON. Any API can accept USDT, USDC, USDD from AI agents and humans. No accounts, no API keys for payers. Just on-chain payment and a JWT.

How it works

1Agent calls your APIGET /api/premium-data
2Your server returns 402402 + payment instructions
3Agent pays on TRONUSDT transfer on-chain
4MERX verifies in 3sPOST x402.merx.exchange/facilitate
5Content served200 OK + JWT proof

For API sellers

npm install merx-x402

import { requirePayment } from 'merx-x402'

app.get('/api/data', requirePayment({
  amount: '0.10',
  recipient: 'TYourAddress',
}), (req, res) => {
  res.json({ data: 'premium content' })
})

Drop-in Express middleware. Same interface as Coinbase x402 but for TRON/USDT.

For AI agents

// Agent encounters 402 -> pays USDT -> gets JWT -> retries

const auth = await fetch('https://x402.merx.exchange/facilitate', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({ txid: '...', amount: 100000, to: 'T...' })
})
const { authorization } = await auth.json()

// Retry with proof
await fetch('https://api.example.com/data', {
  headers: { 'X-Payment-Authorization': authorization }
})

Supported tokens

USDTTether USD
USDCUSD Coin
USDDDecentralized USD

API endpoints

Data table
MethodEndpointDescription
POST/facilitateVerify payment, issue JWT authorization
GET/verify/:txidCheck if authorization is valid
POST/invalidateMark authorization as used
GET/healthService status + confirmation parameters
GET/.well-known/x402Discovery document

Base URL: https://x402.merx.exchange

Pricing

Free tier50 settlements/mo
Beyond free tier$0.01 per settlement
Confirmation~3 seconds

Why TRON for x402

$85B+USDT on TRON
63%Global stablecoin supply
3sConfirmation time
$0.01Per settlement

Start accepting TRON payments