x402-api
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| X402_API_BASE_URL | No | Override API URL | https://x402-api.fly.dev |
| X402_WALLET_PRIVATE_KEY | No | Private key for auto-pay (e.g. 0x...). If set, x402-fetch handles payments automatically. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| get_crypto_pricesA | Get live cryptocurrency prices and top 24h movers. Returns BTC, ETH, SOL prices plus top gainers/losers. Costs 0.001 USDC per call (x402 micropayment on Base). Data sourced live from CoinGecko. |
| get_gas_pricesA | Get current gas prices across multiple chains: Ethereum, Base, Polygon, and Arbitrum. Returns slow/standard/fast tiers in gwei and estimated USD cost. Costs 0.001 USDC per call (x402 micropayment on Base). |
| get_dex_quotesA | Compare swap quotes across DEXes: Uniswap, SushiSwap, and 1inch. Returns best price, price impact, liquidity, and estimated fees for each venue. Costs 0.002 USDC per call (x402 micropayment on Base). |
| scan_tokenA | Perform a security scan on a token contract. Detects rug-pull risks, honeypot patterns, ownership concentration, mint authority, and other red flags. Costs 0.003 USDC per call (x402 micropayment on Base). |
| track_whalesA | Analyze whale activity and holder concentration for a token. Returns top holders, Gini coefficient, whale alerts (large recent buys/sells), and distribution breakdown. Costs 0.005 USDC per call (x402 micropayment on Base). |
| scan_yieldsA | Scan top DeFi yield opportunities across protocols: Aave, Compound, Morpho, Lido, Pendle, and more. Filter by chain, asset, and minimum TVL. Returns APY, TVL, risk score, and protocol details. Costs 0.005 USDC per call (x402 micropayment on Base). |
| get_funding_ratesA | Get perpetual futures funding rates across 6 venues: Hyperliquid, dYdX v4, Aevo, GMX, Drift, and Vertex. Returns per-8h funding rate, annualized APR, predicted rate, open interest, and next funding time for each venue. Also returns ranked arbitrage opportunities (long low-rate venue, short high-rate venue) with spread in bps and annualized carry. Costs 0.008 USDC per call (x402 micropayment on Base). |
| profile_walletA | Generate a full portfolio profile for an Ethereum/Base wallet address. Returns token holdings, NFTs, DeFi positions, transaction history summary, PnL estimate, and risk profile score. Costs 0.008 USDC per call (x402 micropayment on Base). |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 8 tools
Each tool targets a distinct domain (prices, DEX quotes, funding rates, gas, wallet profiling, token security, yield scanning, whale tracking) with no functional overlap, ensuring clear differentiation.
Naming mixes 'get_' prefix (5 tools) with other verbs ('profile_', 'scan_', 'track_'), breaking a uniform pattern, though all use lowercase underscores and are descriptive.
8 tools is ideal for the broad but focused crypto data domain—enough to cover key areas without overwhelming or being too sparse.
Covers core crypto data (prices, quotes, yields, gas, security, whales, wallet) with minor gaps like historical price or native token metadata, but ample for typical informational needs.