API & MCP
Everything a person can do on RavingDesk Ethereum EIP-1559 Gas Fee Estimator, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://ravingdeskethgas.usefulweb.site/api/v1/calculate– run RavingDesk Ethereum EIP-1559 Gas Fee EstimatorGET https://ravingdeskethgas.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
RavingDesk Ethereum EIP-1559 Gas Fee Estimator
Applies the EIP-1559 fee rules to the numbers you enter: effective gas price (base fee plus a priority tip capped by the max fee), the estimated execution fee for the gas used and the maximum fee you authorise (gas limit × max fee), optionally converted at your own ETH price. It flags a max fee below the base fee. No network data is fetched; it is the gas estimator of the RavingDesk workspace.
| Field | Type | Default | Description |
|---|---|---|---|
gasUsed (required) | integer | 21000 | Gas used. 21,000 for a plain ETH transfer; contract calls use more. |
gasLimit (required) | integer | 30000 | Gas limit |
baseFeeGwei (required) | number | 30 | Base fee |
maxFeeGwei (required) | number | 50 | Max fee per gas |
maxPriorityFeeGwei (required) | number | 2 | Max priority fee (tip) |
ethQuoteRate | number | — | Your ETH price (optional). Quote-currency units per 1 ETH, e.g. 3000. Leave empty for ETH only. |
Example request
Plain ETH transfer: 21,000 gas, base 30, max 50, tip 2 gwei, ETH at 3,000
curl -X POST https://ravingdeskethgas.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"gasUsed":21000,"gasLimit":30000,"baseFeeGwei":30,"maxFeeGwei":50,"maxPriorityFeeGwei":2,"ethQuoteRate":3000}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://ravingdeskethgas.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
ravingdesk_eth_gas - Local stdio connector:
node src/mcp-stdio.ts --tool=ravingdesk-eth-gas
{
"mcpServers": {
"ravingdesk-eth-gas": { "type": "http", "url": "https://ravingdeskethgas.usefulweb.site/mcp" }
}
}