base-gas
БесплатноБез исполняемых скриптовНе проверенLive and historical Base mainnet gas prices via x402, including cross-chain comparison and cheapest-hour scheduling. USE FOR: - Checking current gas prices on…
от memosr469 установок в других каталогахОб этом скилле
Base Gas
Live and historical Base mainnet gas data through x402-protected endpoints, served from https://base-gas-x402-production.up.railway.app.
All values are read directly from the chain. Fees are returned in gwei; transaction costs also come back in ETH and USD.
Setup
See rules/getting-started.md for installation and wallet setup.
Quick Reference
| Task | Endpoint | Price | Returns |
|---|---|---|---|
| Current gas | GET /gas |
$0.002 | Base fee, low/med/high priority tiers, cost estimate in ETH and USD |
| Send now or wait | GET /gas/advice |
$0.003 | send_now or wait, reason, USD cost now, ready-to-sign fees (medium tier, wei) |
| Compare chains | GET /gas/compare |
$0.01 | Base, OP, Arbitrum, Ethereum ranked cheapest first, cost in USD |
| Historical trend | GET /gas/history |
$0.01 | Time series, min/max/avg/median, cheap-or-expensive verdict |
| Cheapest hours | GET /gas/cheapest-window |
$0.02 | Hours to avoid, cheapest hour, savings vs the average hour and in USD |
| Data coverage | GET /health |
free | How much history has been collected so far |
See rules/choosing-an-endpoint.md for which route answers which question.
Current Gas
npx agentcash@latest fetch https://base-gas-x402-production.up.railway.app/gas
Parameters:
gasLimit(optional) - Gas units to price the estimate against. Defaults to 21000.
Price the cost of a Uniswap swap instead of a plain transfer:
npx agentcash@latest fetch "https://base-gas-x402-production.up.railway.app/gas?gasLimit=180000"
Common gas limits:
| Operation | gasLimit |
|---|---|
| ETH transfer | 21000 |
| ERC-20 transfer | 65000 |
| NFT mint | 85000 |
| Uniswap swap | 180000 |
| Contract deploy | 1500000 |
Returns: baseFeePerGas, priorityFeePerGas (low/medium/high), gasPrice, estimatedTransferCost (gwei, ETH and USD), suggestedFees (low/medium/high maxFeePerGas and maxPriorityFeePerGas in wei, ready to sign), blockNumber, fetchedAt.
Send Now or Wait
npx agentcash@latest fetch "https://base-gas-x402-production.up.railway.app/gas/advice?gasLimit=180000"
Parameters:
gasLimit(optional) - Gas units to price the transaction against. Defaults to 21000.
Returns: advice (send_now or wait), reason, waitMinutes when the advice is wait, now.costUsd (USD cost of sending now, as a string such as "0.003504"), and suggestedFees (medium tier maxFeePerGas and maxPriorityFeePerGas in wei, ready to sign).
One call answers "should I send this now?" for a single transaction. Quote reason rather than reinterpreting it.
Compare Chains
npx agentcash@latest fetch https://base-gas-x402-production.up.railway.app/gas/compare
Parameters:
gasLimit(optional) - Gas units to price each chain against. Defaults to 21000.
Returns: chains ranked cheapest first, cheapest, baseRank, baseVsEthereum (a plain-language multiplier), and unavailable for any chain whose RPC did not respond.
Chains that fail are reported rather than failing the whole request, so a partial comparison still returns useful data.
Historical Trend
npx agentcash@latest fetch "https://base-gas-x402-production.up.railway.app/gas/history?hours=24"
Parameters:
hours(optional) - Lookback window, 1 to 168. Defaults to 24.
Returns: samples time series, summary (min, max, avg, median), currentGasPrice, verdict, verdictNote, and spreadPercent.
The verdict field is the useful part: cheap, normal, or expensive relative to the requested window, or flat when the window's spread is under 1%. A raw RPC call cannot answer this, because it has no history to compare against.
flat is common on Base and is a real answer: gas is not moving, so there is nothing to wait for. Quote verdictNote rather than reinterpreting it.
Cheapest Hours
npx agentcash@latest fetch "https://base-gas-x402-production.up.railway.app/gas/cheapest-window?hours=168"
Parameters:
hours(optional) - Lookback window used to compute hourly averages, 1 to 168. Defaults to 168 (7 days).
Returns: hasDailyCycle, a plain-language recommendation, savingsPercent, and hourlyAverages bucketed by hour of day in UTC and ranked cheapest first, plus cheapestHourUtc and priciestHourUtc.
Check hasDailyCycle before using the ranking. When it is false the hours do not meaningfully differ and timing saves nothing; report recommendation instead of naming a cheapest hour.
Check Coverage First (free)
Both history endpoints depend on samples collected over time. Check coverage before paying:
curl -s https://base-gas-x402-production.up.railway.app/health
Returns: under history: samples, hoursCovered, oldestSample, newestSample, sampleIntervalSeconds, retentionHours, `
Установить base-gas в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл base-gas?
Live and historical Base mainnet gas prices via x402, including cross-chain comparison and cheapest-hour scheduling. USE FOR: - Checking current gas prices on Base before sending a transaction - Estimating transaction cost for a transfer, swap, NFT mint, or contract deploy - Getting ready-to-sign maxFeePerGas / maxPriorityFeePerGas for a Base transaction - Deciding whether gas is currently cheap or expensive - Comparing gas costs across Base, OP Mainnet, Arbitrum, and Ethereum - Finding the cheapest hour of day to transact on Base - Budgeting gas spend for on-chain agent workloads TRIGGERS: - "gas price", "gas fees", "gwei", "base fee", "priority fee" - "maxFeePerGas", "what fee should I set", "fee for my transaction" - "how much to send", "transaction cost", "cost to swap", "cost to mint" - "is gas cheap right now", "should I transact now or wait" - "compare gas", "cheapest chain", "which L2 is cheaper" - "best time to transact", "cheapest hour", "schedule transaction" Call `GET /health` first (free) before paying for history endpoints. Use `npx agentcash@latest fetch` for the paid routes.
Как установить скилл base-gas?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл base-gas запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub