{"uid":"cap_SVx-0-5UXDZui3PjALrl8","slug":"myworker-agent-api-gas-fee-lookup-kadar-gas-eb28b90a","name":"Myworker Agent API – Gas Fee Lookup (kadar-gas)","description":"Servis berbayar untuk bot/agen (x402): data pasaran Solana via Jupiter + RPC, dan servis AI via Workers AI. Bayar per panggilan dengan USDC di Solana, USDC di Base, atau SOL.","url":"https://crypto-micro-agent.mykira.workers.dev/api/agent/kadar-gas?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","example":{"rangkaian":"base"},"properties":{"rangkaian":{"type":"string","description":"Pilihan: base | ethereum | arbitrum | optimism | solana | kosong = semua"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ok":true,"hasil":{"solana":{"yuran_asas_flatten_lamport":5000,"tip_keutamaan_median_mikrolamport":2000},"rangkaian":{"base":{"gwei":0.0156,"anggaran_usd_transfer_21k":0.001112}}},"servis":"kadar-gas"}},"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":"unknown","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_vZw4Gwy3p5s5LAbocKG7y","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 fees for Solana and/or EVM-compatible networks (Base, Ethereum, Arbitrum, Optimism), priced per call via x402 micropayment.","exampleAgentPrompt":"What are the current gas fees on Base right now — give me the gwei price and an estimate of what a standard 21k gas transfer would cost in USD?","exampleUseCases":[{"title":"Compare gas fees before a swap","prompt":"Before I execute this token swap, can you check the current gas fees on Ethereum, Arbitrum, and Base so I can pick the cheapest chain?"},{"title":"Monitor Solana priority fees","prompt":"What is the current median priority tip and base fee on Solana in lamports and microlamports? I want to make sure I'm not overpaying for my transaction."},{"title":"Estimate cross-chain transfer cost","prompt":"How much would a standard ETH transfer cost in USD on Optimism right now, based on current gas prices?"}],"resultDescription":"Returns a JSON object with gas fee data per requested network: for Solana, base fee in lamports and median priority tip in microlamports; for EVM chains (Base, Ethereum, Arbitrum, Optimism), current gwei price and estimated USD cost for a 21,000 gas transfer.","failureModes":["Invalid network name returns an error or empty result","Network RPC unavailable causes a 5xx or timeout","Missing or rejected x402 payment results in 402 Payment Required","Requesting an unsupported chain name returns no data for that chain"],"whenToPreferThis":"Choose this endpoint when you need real-time gas fee data for Solana and/or EVM-compatible chains (Base, Ethereum, Arbitrum, Optimism) in a single pay-per-call micropayment model without an API key subscription. It is especially useful for agents that need to compare fees across multiple chains before executing a transaction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T12:32:50.470Z","isFirstParty":false,"canonicalSlug":"myworker-agent-api-gas-fee-lookup-kadar-gas-eb28b90a"}