x402-api
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| X402_API_BASE_URL | No | Official API URL | https://x402-api.fly.dev |
| X402_REFERRAL_SOURCE | No | Referral attribution hint | glama |
| X402_MAX_PER_CALL_USDC | No | Maximum USDC per call | 0.01 |
| X402_WALLET_PRIVATE_KEY | No | Optional Base USDC client wallet for EIP-3009 auto-pay. Omit for free inspect mode. |
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 or CoinLore fallback. |
| 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 | Get one live ParaSwap aggregate route for a supported pair. Returns expected output and route components; no independent venue comparison. Costs 0.002 USDC per call (x402 micropayment on Base). |
| scan_tokenA | Read GoPlus ERC-20 security flags and a disclosed risk heuristic. Unavailable metrics are null; this is not an audit. Costs 0.003 USDC per call (x402 micropayment on Base). |
| track_whalesA | Read a GoPlus sample of top ERC-20 holders and reported supply share. Full distribution, Gini, and recent transfer history are unavailable. 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 provider reported APY and TVL without a safety rating. Costs 0.005 USDC per call (x402 micropayment on Base). |
| get_funding_ratesA | Get hourly perpetual funding rates from Hyperliquid and dYdX v4. Current and predicted rates are compared as indicative spreads; fees and basis risk are excluded. Costs 0.008 USDC per call (x402 micropayment on Base). |
| profile_walletA | Read priced public wallet balances and available transaction counts from Blockscout. Coverage may be partial; DeFi positions, PnL, and risk score are unavailable. 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 clearly distinct data domain: spot prices, gas, DEX quotes, token security, whale holders, yields, funding rates, and wallet profiles. The descriptions explicitly state what each returns and what it excludes, leaving no ambiguity about when to use one over another.
All names use snake_case and follow a verb_noun pattern, but the verb set is mixed (get_, scan_, track_, profile_). The variety is semantically justified by each tool's purpose, though it is not a single uniform pattern.
Eight tools is an ideal size for a crypto data API, covering diverse data needs without redundancy. Each tool earns its place by providing a distinct data type.
The surface covers market data, security, yields, funding, and wallet basics, which is strong for a micropayment API. Minor gaps exist, such as historical price data and deeper wallet analytics, but the descriptions acknowledge provider limits and agents can work around them.