Best Price
best_priceBest-price router: queries several independent gas-price sources in parallel, returns the cheapest quote and charges a configurable share of the savings (average - best) as commission. Response includes the full breakdown (best_price, average_price, savings_gross, provision, user_pays) for Base, Ethereum, Arbitrum, Optimism and Polygon. No API key. Pay per call with USDC or USDT on Base via x402. 3 free calls per wallet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | base | ethereum | arbitrum | optimism | polygon (default base). | base |
| wallet | No | Your EVM wallet address (0x...). Unlocks the free tier (3 free calls per wallet). | |
| api_key | No | Optional AMR enterprise API key. | |
| x_payment | No | Optional signed x402 payment payload (base64 JSON) for USDC/USDT on Base. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | ||
| token | No | Token actually used for payment (USDC, USDT or FREE). | USDC |
| source | Yes | Source that produced the cheapest quote. | |
| routing | Yes | How the request was routed (provider, fallback, cache, latency). | |
| cost_usdc | Yes | Price charged in stablecoin units (USDC/USDT 1:1); 0 on the free tier. | |
| provision | Yes | Commission charged on the savings (USD). | |
| user_pays | Yes | best_price + provision (USD). | |
| best_price | Yes | Cheapest quote across all sources (USD). | |
| quotes_count | Yes | Number of sources that answered. | |
| user_savings | Yes | average_price - user_pays (USD, what the caller still saves). | |
| average_price | Yes | Mean of all quotes (USD). | |
| savings_gross | Yes | average_price - best_price (USD, >= 0). | |
| x_payment_response | No | Base64-encoded x402 settlement receipt (mirrors the X-PAYMENT-RESPONSE header). Only present when the call was paid with `x_payment`. | |
| user_pays_micro_usdc | Yes | user_pays expressed in micro-USDC (x402 unit, 1e6). |