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

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.

Inputs of RavingDesk Ethereum EIP-1559 Gas Fee Estimator
FieldTypeDefaultDescription
gasUsed (required)integer21000Gas used. 21,000 for a plain ETH transfer; contract calls use more.
gasLimit (required)integer30000Gas limit
baseFeeGwei (required)number30Base fee
maxFeeGwei (required)number50Max fee per gas
maxPriorityFeeGwei (required)number2Max priority fee (tip)
ethQuoteRatenumber—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)

{
  "mcpServers": {
    "ravingdesk-eth-gas": { "type": "http", "url": "https://ravingdeskethgas.usefulweb.site/mcp" }
  }
}