Base gas-cost estimates under priority-fee scenarios

$0.04 per call · failed calls are never charged · no account or API key needed

Estimates Base gas costs from current fees and priority-fee presets. Fixed gas units (100k simple, 250k complex, 180k liquidity) are typical assumptions, not transaction-specific estimates or quotes. Valid values: standard, high-mev (3x priority fee), low-gas (half); invalid values return HTTP 400 without charge. No transaction simulation, mempool observation, or MEV/sandwich-risk measurement. Use to budget gas for a Base transaction.

Run it free (25 free calls) Buy credits by card (from $5) Example result (JSON)

Inputs

NameTypeDescription
scenariostringOne of standard, high-mev, low-gas (default: standard). One of: standard, high-mev, low-gas.

Request

Over HTTP, with a card key from /credits:

curl -H "Authorization: Bearer adt_…" "https://agent-data-tools.revmesh2074.workers.dev/mev-simulator?scenario=standard"

Or one of your 25 free calls, no key:

curl "https://agent-data-tools.revmesh2074.workers.dev/mev-simulator?scenario=standard&trial=1"

Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum, Monad, World Chain or Tempo) and retries.

Example result

{
  "chain": "base",
  "scenario": "standard",
  "gasPrice": {
    "baseFeeGwei": "0.05",
    "priorityFeeGwei": "0.1",
    "maxFeeGwei": "0.15"
  },
  "estimatedCosts": {
    "simpleSwap": {
      "gasUnits": 100000,
      "costEth": "0.000015",
      "costUsd": "0.06"
    },
    "complexSwap": {
      "gasUnits": 250000,
      "costEth": "0.0000375",
      "costUsd": "0.16"
    },
    "addLiquidity": {
      "gasUnits": 180000,
      "costEth": "0.000027",
      "costUsd": "0.11"
    }
  },
  "scenarioNotes": [
    "Gas units use typical fixed assumptions (100,000 simple swap, 250,000 complex swap, 180,000 add-liquidity), not a transaction-specific estimate or quote.",
    "This preset uses the current priority fee without adjustment."
  ],
  "blockNumber": 18650000
}

From an AI agent (MCP)

Add the MCP server to Claude, Cursor or any MCP client. This tool is mev_simulator, and the first 25 successful calls are free:

https://agent-data-tools.revmesh2074.workers.dev/mcp

Related tools