{
  "generated_at": "2026-04-24T15:01:35.625676+00:00",
  "slug": "api-dirtroad-dev-tools-web3-evm-eth-gas-price",
  "title": "Dirt Road \u00b7 EVM Gas Price Oracle",
  "url": "https://api.dirtroad.dev/tools/web3/evm/eth-gas-price",
  "category": "data",
  "summary": "Retrieve the current gas price from the Base network in wei, formatted as a hex string for transaction construction.",
  "seo": {
    "title": "EVM Gas Price API \u2014 Real-Time Base Network Fees via x402",
    "description": "Fetch current gas price in wei for Base network. Pay 0.0001 USDC per call. Returns hex-formatted gas price for transaction fee estimation."
  },
  "use_cases": [
    "Estimate transaction fees before submission",
    "Set dynamic gas prices for automated transactions",
    "Monitor network congestion levels"
  ],
  "ideal_buyer": "On-chain agents and dApps that need real-time gas price data for Base network transaction construction.",
  "example_prompt": "What's the current gas price on Base so I can submit a swap transaction?",
  "example_request_body": {
    "chain": "base"
  },
  "risk_notes": [],
  "pricing_sanity": {
    "flag": "cheap_outlier",
    "ratio": 0.003,
    "median_category_atomic": 30000
  },
  "pricing_review_required": false,
  "pricing_decimal_suspect": false,
  "trust_tier": "indexed_external",
  "accepts": [
    {
      "scheme": "exact",
      "network": "base",
      "pay_to": "0x71dc0bc68e7f0e2c5aace661b0f3fb995a80aaf4",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "max_amount_required_atomic": "100",
      "max_timeout_seconds": 300,
      "mime_type": "application/json",
      "description": "Retrieve the current gas price suggested by the blockchain network. Returns the gas price in wei as a hex string. Essential for estimating transaction fees and setting appropriate gas prices for transaction submission.",
      "verified": false,
      "hints": {
        "input": {
          "type": "http",
          "method": "POST",
          "bodyType": "json",
          "bodyFields": {
            "chain": {}
          }
        },
        "output": {
          "type": "object",
          "required": [
            "chain",
            "gasPrice"
          ],
          "properties": {
            "chain": {
              "type": "string",
              "description": "CAIP-12 chain identifier"
            },
            "gasPrice": {
              "type": "string",
              "description": "Current gas price in wei"
            }
          }
        }
      }
    }
  ],
  "origin": {
    "slug": "api-dirtroad-dev",
    "host": "api.dirtroad.dev",
    "url": "https://api.dirtroad.dev",
    "favicon": "https://dirtroad.dev/mintlify-assets/_mintlify/favicons/dirtroaddev/hL1CxJhINP8GaPGW/_generated/favicon/favicon.ico"
  },
  "json_ld": {
    "@id": "https://x402all.com/resource/api-dirtroad-dev-tools-web3-evm-eth-gas-price",
    "url": "https://x402all.com/resource/api-dirtroad-dev-tools-web3-evm-eth-gas-price",
    "name": "Dirt Road \u00b7 EVM Gas Price Oracle",
    "@type": "WebAPI",
    "offers": {
      "url": "https://x402all.com/resource/api-dirtroad-dev-tools-web3-evm-eth-gas-price",
      "@type": "Offer",
      "price": "0.0001",
      "availability": "https://schema.org/InStock",
      "priceCurrency": "USDC",
      "priceSpecification": {
        "@type": "UnitPriceSpecification",
        "price": "0.000100",
        "unitText": "call",
        "priceCurrency": "USDC"
      },
      "eligibleCustomerType": "Agent",
      "additionalProperty": [
        {
          "@type": "PropertyValue",
          "name": "paymentNetwork",
          "value": "base"
        },
        {
          "@type": "PropertyValue",
          "name": "paymentAsset",
          "value": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"
        }
      ]
    },
    "sameAs": "https://api.dirtroad.dev/tools/web3/evm/eth-gas-price",
    "@context": "https://schema.org",
    "provider": {
      "@id": "https://x402all.com/server/api-dirtroad-dev",
      "url": "https://api.dirtroad.dev",
      "name": "api.dirtroad.dev",
      "@type": "Organization"
    },
    "identifier": "api-dirtroad-dev-tools-web3-evm-eth-gas-price",
    "description": "Fetch current gas price in wei for Base network. Pay 0.0001 USDC per call. Returns hex-formatted gas price for transaction fee estimation.",
    "potentialAction": {
      "@type": "BuyAction",
      "target": "https://axon402.com/test-buy?resource=api-dirtroad-dev-tools-web3-evm-eth-gas-price",
      "description": "Test-buy this endpoint on AXON"
    },
    "applicationCategory": "data"
  },
  "axon_deep_link": "https://axon402.com/test-buy?resource=api-dirtroad-dev-tools-web3-evm-eth-gas-price"
}
