{"uid":"cap_DLCIUFDZdXAMCzEKUd33x","slug":"gas-fee-lookup-api-solana-ethereum-2a0580ff","name":"Gas Fee Lookup API (Solana & Ethereum)","description":"Crypto market data and web tools for autonomous agents: read web pages, PDFs and YouTube transcripts, check domains and tokens. Every `/api/v1/*` call is paid per call: **$0.003** for simple reads, **$0.005-$0.01** for aggregates, **$0.02-$0.03** for token risk checks and reports (USDC or USDT). Each route's price is in `x-payment-info`.\n\n**x402 agents:** pay automatically. The 402 response carries a standard `PAYMENT-REQUIRED` header (x402 v2, USDC on Base or Solana, USDT on Solana); retry with `PAYMENT-SIGNATURE`.\n\n**Manual (legacy) flow:** call the endpoint, read the HTTP 402 JSON (`pay_to`, `asset`, `price`), send the USDT transfer, then repeat the call with header `X-Payment-Tx: <signature>`. One signature pays for one call; signatures older than the `max_tx_age_seconds` value are rejected.\n\nMachine-readable spec: `/openapi.json`. LLM summary: `/llms.txt`. MCP server: `POST /mcp`.","url":"https://194-28-85-99.sslip.io/api/v1/gas?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"ts":1767225600,"solana":{"base_fee_lamports":5000,"transfer_cost_sol":0.0000052,"median_priority_fee_micro_lamports":1000},"ethereum":{"base_fee_gwei":0.4,"gas_price_gwei":0.42,"priority_fee_gwei":0.02,"transfer_cost_eth":0.0000088}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"down","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_yJPXFFKSJxLuNONkSBkRu","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns current gas fee estimates for Solana and Ethereum networks, including base fees, priority fees, and estimated transfer costs.","exampleAgentPrompt":"What are the current gas fees on Ethereum and Solana — give me base fees, priority fees, and estimated transfer costs for each?","exampleUseCases":[{"title":"Pre-transaction cost check","prompt":"Before I send this Solana transfer, what's the current base fee and estimated total cost in SOL so I can decide if now is a good time?"},{"title":"DeFi bot gas optimization","prompt":"Check current Ethereum gas prices — base fee, priority fee, and total gwei — so I can decide whether to execute this swap now or wait for lower fees."},{"title":"Cross-chain fee comparison","prompt":"Compare gas fees on Solana and Ethereum right now and tell me which network is cheaper for a simple token transfer."}],"resultDescription":"A JSON object with a Unix timestamp and two sub-objects: 'solana' (base_fee_lamports, transfer_cost_sol, median_priority_fee_micro_lamports) and 'ethereum' (base_fee_gwei, gas_price_gwei, priority_fee_gwei, transfer_cost_eth). Provides real-time snapshot of network fee conditions on both chains.","failureModes":["HTTP 402 Payment Required — payment must be submitted before the response is returned","Stale data if underlying RPC nodes are lagging","Network-specific data may be missing if one chain's node is unreachable","Payment signature older than max_tx_age_seconds is rejected with an error"],"whenToPreferThis":"Use this endpoint when an AI agent needs real-time gas fee data for Solana or Ethereum before executing a transaction, estimating costs, or deciding between chains. It is especially suited for autonomous agents operating in a pay-per-call x402 environment where automated micropayments are handled natively. Prefer this over manual RPC calls when you want structured, normalized fee data for both chains in one call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-15T01:25:30.080Z","isFirstParty":false,"canonicalSlug":"gas-fee-lookup-api-solana-ethereum-2a0580ff"}