x402 support is currently in beta. Endpoints, pricing, and supported networks may change. Join the Mobula Telegram to report issues or share feedback.
/x402/token/details endpoint provides comprehensive token metadata and live market data, gated by a $0.001 USDC micropayment using the x402 payment protocol. No API key required — payment is the credential.
This endpoint is identical to Get Token Details but uses pay-per-use access instead of API key authentication. It is designed for AI agents, autonomous scripts, and any x402-compatible client.
Supported Networks
Payment is accepted in USDC on:| Network | CAIP-2 |
|---|---|
| Base mainnet | eip155:8453 |
| Solana mainnet | solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp |
Price Per Call
$0.001 USDC per request, settled on-chain via the Coinbase CDP Facilitator.Query Parameters
| Parameter | Required | Description |
|---|---|---|
address | Yes | Token contract address. EVM: checksummed hex (0x…). Solana: base58 mint address. For native tokens use the wrapped version (e.g. WETH for ETH on Ethereum). |
blockchain | Yes | Blockchain identifier. Accepted formats: full name (Ethereum, Solana, BNB Smart Chain), short code (eth, sol, bsc), CAIP-2 (eip155:1), or numeric chain ID (1, 56, 8453). |
currencies | No | Comma-separated currency codes for additional price fields. Example: EUR,GBP,BTC. USD is always included. |
How x402 Payment Works
The x402 protocol follows a standard two-step flow: Step 1 — Request without payment (receives 402)payment-required header contains the accepted payment options (network, asset, amount, receiving address).
Step 2 — Sign and retry with payment header
Your x402-compatible client reads the payment-required header, signs a USDC transfer, and retries with the x-payment header:
What the Response Includes
The response is identical to the standard Token Details endpoint:address/symbol/name/logo— core token identity fieldschainId— CAIP-2 chain identifierrank— global market cap rankdecimals— token decimal precisionpriceUSD— current USD pricemarketCapUSD/marketCapDilutedUSD— market cap figurescirculatingSupply/totalSupply— supply metricsliquidityUSD— aggregated on-chain liquidity in USDpriceChange*— price change percentages across 1h, 4h, 24hvolume*/volumeBuy*/volumeSell*— volume metrics across timeframestrades*/buys*/sells*/buyers*/sellers*/traders*— trade and participant countsathUSD/atlUSD/athDate/atlDate— all-time high and low dataholdersCount— number of unique token holderstop10HoldingsPercentage— concentration of top 10 holdersinsidersHoldingsPercentage/bundlersHoldingsPercentage/snipersHoldingsPercentage— holder profile breakdownsecurity— honeypot status, buyTax, sellTax, renounced, isMintable, isBlacklisted, modifyableTax, selfDestructsocials— Twitter, website, Telegram links when availablecexs— centralized exchange listings
Using with AI Agents
Any agent or autonomous script using an x402-compatible HTTP client automatically handles the 402 → sign → retry flow. Thepayment-required response embeds the full type schema of the response (via the Bazaar extension), so agents know exactly what fields to expect before paying.
Compatible client libraries:
@x402/core— TypeScript/JavaScript@x402/evm— EVM (Base) payment signing@x402/svm— Solana payment signing
Testing
Two test scripts are included in the repository for end-to-end testing of the full 402 → sign → settle flow. Both scripts accept anENDPOINT env var to target any x402 route.
Prerequisites
Solana mainnet- Solana wallet private key in base58 format (export from Phantom or Backpack)
- USDC on Solana mainnet at
EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v
- EVM wallet private key (
0x-prefixed) - USDC on Base mainnet at
0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 - ETH on Base for gas
Run the test
Solana:/tmp/x402-response.json.