Bot API — pay per request with x402
Paid endpoints answer 402 Payment Required with x402 payment requirements. Pay with USDC on Solana mainnet (solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp) or, where listed, USDC on Base (eip155:8453), both via PayAI. Use an x402 client (e.g. @x402/fetch + @x402/svm for Solana, or @x402/evm for Base) to pay and retry automatically. Solana network: solana (solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp).
Feed, risk, and verdict accept USDC on Solana or Base. Safe check, wallet profile, and the launches feed are Solana USDC only. EVM risk and EVM verdict accept USDC on Base or Solana (Base listed first). GET /api/pricing and /.well-known/x402 list the live accepts per route.
GET /api/lessons/latest free newest lesson (JSON)
GET /api/pricing free price list + network
GET /api/lessons/feed?days=7 $0.005 structured daily findings feed (USDC on Solana or Base)
GET /api/signals/risk/DFMt2FyLpB6ekPNAzVErLXgpSnJ9CRf1VnxBAkTLpump
$0.01 curve-skip / unlocked LP / mayhem / bundle-handoff flags for any mint (real read-only on-chain; flags may be "unknown"; invalid mint = 400, not charged). USDC on Solana or Base
GET /api/signals/verdict?mint=DFMt2FyLpB6ekPNAzVErLXgpSnJ9CRf1VnxBAkTLpump
$0.005 go/caution/avoid + short reasons from the same checks (path form /api/signals/verdict/<mint> also works; invalid mint = 400, not charged). USDC on Solana or Base
GET /api/signals/risk/sample free real cached risk response for the mint above
GET /api/signals/safe?mint=DFMt2FyLpB6ekPNAzVErLXgpSnJ9CRf1VnxBAkTLpump
$0.01 rug/honeypot check: safe | caution | avoid + reasons (mint/freeze authority, Token-2022 fee/hook/delegate, top-10 holders, LP burn/lock, Jupiter sell round trip). Solana USDC only. POST {"mint":"..."} also works; invalid mint = 400, non-mint = 404, never charged
GET /api/signals/safe/sample free real cached safe-check response for the mint above
GET /api/signals/safe/preview?mint=<mint>
free teaser for any mint: authorities + Token-2022 red flags, with a link to the paid full check
GET /api/signals/wallet?wallet=<address>
$0.01 public-data wallet profile: fresh / sniper-like / bundler-like / deployer-like / established + recent realized SOL PnL. Solana USDC only. POST {"wallet":"..."} also works
GET /api/signals/launches?minutes=30&limit=20
$0.01 new-launch feed: fresh pump.fun launches and PumpSwap/Raydium/Meteora pools from the last 1-60 min with liquidity, traction and a cached quick risk score (dex=, sort=traction|newest, minLiquidityUsd=). Solana USDC only; the coverage block states the real history depth
GET /api/evm/risk?token=<0x address>&chain=base
$0.01 EVM rug/honeypot report (GoPlus + honeypot.is): sellability, taxes, owner/mint/proxy/blacklist controls, holders, LP lock. Pay with USDC on Base or Solana. chain=base|ethereum|arbitrum|optimism|polygon|bsc
GET /api/evm/verdict?token=<0x address>&chain=base
$0.005 go/caution/avoid + short reasons from the same EVM checks. Pay with USDC on Base or Solana
GET /api/stats free per-route 402 / paid counters
x402 v1 clients (x402-fetch 1.x): append ?x402v=1 (or send X-X402-Version: 1) to a paid URL for a v1-shaped 402; X-PAYMENT is accepted on every paid routeInput tolerance: the mint routes accept ?mint, ?address, ?token, ?ca (and similar) or a JSON POST body such as {"mint":"<MINT>"}; explorer or pump.fun URLs are reduced to the mint. Bad input returns a 400 with a usage body and is never charged. A paid call that cannot be answered (not a token mint, RPC outage) returns a non-2xx status and is never settled.
Stuck after the 402? Check these in order
First, the basics. Every paid endpoint returns 402 Payment Required until a payment is attached. That's expected. The PAYMENT-REQUIRED response header (base64 JSON) and the JSON body both list accepts[] (scheme exact, network, USDC amount, payTo). An x402 client reads that, signs, and sends the request again.
- Wallet isn't funded (or holds the wrong asset)
Symptom: the client throws during signing or settlement, or the retry comes back as a 402 again.
Fix: fund the bot wallet with USDC on the network that route accepts. Feed, risk, and verdict take USDC on Solana mainnet (SPL) or USDC on Base (eip155:8453). Safe check, wallet profile, and the launches feed are Solana USDC only. EVM risk and EVM verdict take Base or Solana (Base listed first). Native gas (SOL or ETH) alone isn't enough to pay the price. Send about $1 of USDC to the bot wallet on the chain you'll pay from. PayAI settles listed networks; keep a little USDC on that chain. - Wrong network / scheme
Symptom: "no matching payment requirements" or an unsupported-network error from your client.
Fix: register the scheme that matches how you'll pay — SVM for Solana (client.register("solana:*", new ExactSvmScheme(signer))) or EVM for Base (client.register("eip155:*", new ExactEvmScheme(signer))with@x402/evm). The 402accepts[]lists the networks for that route. Base payments will not match Solana-only routes (safe, wallet, launches). GET /api/pricing shows the live Solana network plus the Base block when it is enabled. - Missing payment header on the retry
Symptom: every request gets a 402 even though your code "paid".
Fix: the retry has to carry the signed payload in thePAYMENT-SIGNATUREheader (x402 v2). Older clients useX-PAYMENT. Hand-rolledfetch/curlwon't add it for you, so usewrapFetchWithPaymentfrom@x402/fetch. After a successful call, the receipt is in thePAYMENT-RESPONSEheader. - Literal
{mint}in the URL (risk endpoint)
Symptom: a 400 invalid mint, or a request to/api/signals/risk/%7Bmint%7D.
Fix:{mint}is a placeholder. Swap in a real SPL mint address, or use the query form:GET /api/signals/risk?mint=<MINT>. Both forms cost $0.01. To check the response shape at no cost: /api/signals/risk/sample. - Still stuck? Start with the feed:
GET /api/lessons/feed?days=7at $0.005. It takes no parameters, so it tells you whether the problem is your wallet/client setup or something about the mint.
Payments are final per call. Educational research only. Not financial advice. Terms
Sample responses (after payment)
GET /api/signals/risk/DFMt2FyLpB6ekPNAzVErLXgpSnJ9CRf1VnxBAkTLpump — try the live version free: /api/signals/risk/sample
{
"mint": "DFMt2FyLpB6ekPNAzVErLXgpSnJ9CRf1VnxBAkTLpump",
"mocked": false,
"network": "solana-mainnet (read-only RPC)",
"flags": {
"curveSkipPool": {
"value": false,
"status": "ok",
"confidence": "high",
"detail": {
"pool": "Fk5MuGv2H3Qpt6AxdhS2KHgDL2os424BvfEoqFNTdv9Y",
"lookup": "canonical-pda"
}
},
"unlockedLp": {
"value": false,
"status": "ok",
"confidence": "high",
"detail": {
"note": "remaining LP is dust (effectively all burned)"
}
},
"mayhemMode": {
"value": false,
"status": "ok",
"confidence": "high",
"detail": {
"source": "bonding curve",
"curveComplete": true
}
},
"bundleHandoff": {
"value": false,
"status": "ok",
"confidence": "low",
"detail": {
"earlyNonDevBuyers": 4,
"walletsThatHandedOff": 0
}
}
},
"riskScore": 0,
"scoredFlags": 4,
"elapsedMs": 534,
"asOf": "2026-10-15T23:30:00.000Z",
"disclaimer": "Heuristic, read-only on-chain checks. Can be wrong. Not financial advice. Data as-is, no warranty. Terms: /terms"
}GET /api/signals/safe?mint=DFMt2FyLpB6ekPNAzVErLXgpSnJ9CRf1VnxBAkTLpump — free live sample: /api/signals/safe/sample
{
"mint": "DFMt2FyLpB6ekPNAzVErLXgpSnJ9CRf1VnxBAkTLpump",
"verdict": "safe",
"confidence": "high",
"reasons": [
"no freeze authority",
"mint authority revoked",
"top 10 wallets hold 18.0% of supply",
"sell route exists; buy then sell round trip costs 2.3% on a 0.01 SOL quote",
"LP is burned or dust"
],
"passed": [
"no freeze authority",
"mint authority revoked"
],
"unknown": [],
"checks": {
"authorities": {
"mintAuthority": null,
"freezeAuthority": null,
"mintAuthorityRevoked": true,
"freezeAuthorityRevoked": true
},
"tokenProgram": "token-2022",
"decimals": 6,
"extensions": [
"metadataPointer",
"tokenMetadata"
],
"transferFeeBps": null,
"holders": {
"available": true,
"top1Pct": 3.47,
"top10Pct": 18.03,
"programHeldPct": 17.4,
"holdersChecked": 20
},
"sellability": {
"checked": true,
"buyRoute": true,
"sellRoute": true,
"priceImpactBuyPct": 0,
"roundTripLossPct": 2.3,
"method": "Jupiter quote buy 0.01 SOL then quote selling that amount back (no transaction is sent)"
},
"liquidity": {
"checked": true,
"unlockedLp": false,
"curveSkipPool": false,
"mayhemMode": false,
"bundleHandoff": false
}
},
"elapsedMs": 340,
"asOf": "2026-11-09T20:25:00.000Z",
"disclaimer": "Heuristic, read-only checks from public data. Can be wrong; a sell quote is not a guarantee you can sell. Not financial advice. Terms: /terms"
}GET /api/signals/wallet?wallet=<ADDRESS>
{
"wallet": "7JAuWxcEpZL2wK3gm6eTR2p7d1SAofM4EHxuTgemAAae",
"labels": [
"established"
],
"summary": "established wallet, 2 swaps in the last 40 txs",
"stats": {
"firstSeen": "2026-10-12T00:00:00.000Z",
"ageDays": 28,
"ageIsLowerBound": false,
"txCountSampled": 40,
"solBalance": 0.12
},
"activity": {
"swapCount": 2,
"buys": 1,
"sells": 1,
"distinctTokens": 1,
"closedPositions": 1,
"wins": 1,
"fastFlips": 0,
"netSolFlowFromSwaps": 0.021,
"realizedPnlSol": 0.021
},
"signals": {
"deployerLike": {
"value": false,
"evidence": "no token mints created by this wallet in sample"
},
"bundlerLike": {
"value": false,
"evidence": "max 1 SOL-funded recipients in one tx"
},
"sniperLike": {
"value": false,
"evidence": "0 of 1 closed positions held under 2 minutes"
},
"fresh": {
"value": false
}
},
"window": {
"transactionsAnalyzed": 40,
"oldestAnalyzed": "2026-11-01T00:00:00.000Z",
"newestAnalyzed": "2026-11-09T00:00:00.000Z"
},
"method": "public on-chain data; heuristics, can be wrong",
"asOf": "2026-11-09T20:25:00.000Z",
"disclaimer": "Heuristic labels from public on-chain data. Can be wrong. Not financial advice. Terms: /terms"
}GET /api/signals/launches?minutes=30&limit=20
{
"query": {
"minutes": 30,
"dex": null,
"sort": "traction",
"limit": 20,
"minLiquidityUsd": 0
},
"count": 1,
"launches": [
{
"mint": "HA36YqW3qxvJLz4M8AYGwkGeSzDBxMh7TQXDEaZRpump",
"symbol": "butthole",
"name": "butthole",
"dex": "pump-fun",
"pool": "AHen1ipY1UGTJVNgpyk5BtYB4s2BHuKtNycDgF5Zm4Bt",
"createdAt": "2026-11-10T02:42:01.000Z",
"ageMinutes": 1.1,
"priceUsd": 0.0000184,
"liquidityUsd": 6440,
"fdvUsd": 13360,
"volumeUsd": {
"m5": 20204,
"h1": 20204
},
"txnsM15": {
"buys": 120,
"sells": 80,
"buyers": 90
},
"statsAsOf": "2026-11-10T02:43:08.000Z",
"score": {
"riskScore": 0,
"verdict": "ok",
"flags": [],
"authorities": {
"mintRevoked": true,
"freezeRevoked": true
},
"top10Pct": 18.2,
"top1Pct": 5.2,
"program": "token-2022",
"scoredAt": 1794278588
},
"scoring": "ready",
"links": {
"safe": "https://trench-lessons.vercel.app/api/signals/safe?mint=HA36…",
"risk": "https://trench-lessons.vercel.app/api/signals/risk?mint=HA36…",
"verdict": "https://trench-lessons.vercel.app/api/signals/verdict?mint=HA36…"
}
}
],
"coverage": {
"poolsInWindow": 46,
"oldestPoolSeen": "2026-11-10T02:40:17.000Z",
"newestPoolSeen": "2026-11-10T02:42:15.000Z",
"refreshedAt": "2026-11-10T02:43:07.001Z",
"stale": false,
"note": "…"
},
"elapsedMs": 1328,
"asOf": "2026-11-10T02:43:09.000Z",
"disclaimer": "Heuristic quick scores from public on-chain and market data. Can be wrong. Not financial advice. Terms: /terms"
}GET /api/evm/risk?token=0x532f27101965dd16442E59d40670FaF5eBB142E4&chain=base
{
"checked": true,
"chain": "base",
"chainId": 8453,
"token": {
"address": "0x532f27101965dd16442E59d40670FaF5eBB142E4",
"name": "Brett",
"symbol": "BRETT",
"decimals": 18
},
"verdict": "go",
"riskScore": 0,
"confidence": "high",
"reasons": [
"honeypot simulation: buy and sell succeeded",
"ownership renounced, not mintable, not a proxy",
"top 10 wallets hold 29.5% of supply"
],
"passed": [],
"unknown": [],
"checks": {
"sellability": {
"simulated": true,
"isHoneypot": false,
"buyTaxPct": 0,
"sellTaxPct": 0,
"cannotSellAll": false
},
"contract": {
"ownerRenounced": true,
"isProxy": false,
"isOpenSource": true,
"isMintable": false,
"hiddenOwner": false,
"blacklistFunction": false,
"transferPausable": false
},
"holders": {
"holderCount": 909895,
"top1Pct": 11.8,
"top10Pct": 29.48
},
"liquidity": {
"liquidityUsd": 1271564,
"lpLockedOrBurnedPct": 0
}
},
"sources": [
"GoPlus",
"honeypot.is"
],
"asOf": "2026-11-09T20:40:00.000Z",
"disclaimer": "Heuristic, read-only checks from public data (GoPlus, honeypot.is). Can be wrong. Not financial advice. Terms: /terms"
}GET /api/evm/verdict?token=0x532f27101965dd16442E59d40670FaF5eBB142E4&chain=base
{
"checked": true,
"chain": "base",
"token": {
"address": "0x532f27101965dd16442E59d40670FaF5eBB142E4",
"symbol": "BRETT"
},
"verdict": "go",
"riskScore": 0,
"confidence": "high",
"reasons": [
"honeypot simulation: buy and sell succeeded"
],
"sources": [
"GoPlus",
"honeypot.is"
],
"fullReport": "https://trench-lessons.vercel.app/api/evm/risk?token=0x532f27101965dd16442E59d40670FaF5eBB142E4&chain=base",
"asOf": "2026-11-09T20:40:00.000Z",
"disclaimer": "Heuristic verdict from public data. Can be wrong. Not financial advice. Terms: /terms"
}GET /api/lessons/feed?days=1
{
"generatedAt": "2026-10-15T23:00:00.000Z",
"count": 1,
"feed": [
{
"date": "2026-10-15",
"findings": [
{
"topic": "LaunchTape: 2,193 pump.fun graduations, first 10 minutes",
"evidence": "A",
"points": [
"Dump clock: among 894 coins with a big-holder dump, median was 2.2 min after graduation; ~48% inside the first 2 min."
]
}
],
"sources": [
"https://dev.to/launchtape/what-2193-pumpfun-graduations-did-in-their-first-10-minutes-and-what-it-means-for-your-bot-4f70"
]
}
],
"disclaimer": "Educational research only. Not financial advice. Data as-is, no warranty. Terms: /terms"
}Machine-readable: /.well-known/x402 · /llms.txt · discovery metadata (input/output schemas) is included in each 402 response under extensions.bazaar.
Monthly pass (planned): flat fee for unlimited calls with rate limit. See README.
Data is research, not financial advice. Risk flags are heuristics and can be wrong. Payments are final per call. By using the API you agree to the Terms and Privacy notice.