# DopamineDesk Gas Oracle API

> DopamineDesk Gas Oracle API is a paid API for AI agents from ai-data-marketplace-1042299154756.us-central1.run.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Returns current gas price estimates (safe, proposed, fast, and base fee in Gwei) for a specified blockchain network

## Facts

- Endpoint: GET https://ai-data-marketplace-1042299154756.us-central1.run.app/api/v1/gas_oracle
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dopaminedesk-gas-oracle-api-a8c03518
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_A9h1uv-oWL78V37flkdeV

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability dopaminedesk-gas-oracle-api-a8c03518
```

Example prompt: What are the current gas prices on Ethereum right now — give me the safe, proposed, and fast Gwei estimates along with the base fee?

## When to prefer this

Choose this endpoint when you need live, tiered gas price estimates (safe/proposed/fast) for EVM-compatible blockchains like Ethereum, Polygon, or Arbitrum, especially in agent workflows that must decide fee levels before submitting transactions. It is priced at $0.01 USDC per call via x402 micropayment, making it suitable for pay-per-use agent automation without a subscription. Prefer alternatives if you need historical gas data or non-EVM chains.

## Known failure modes

- Missing or invalid 'chain' query parameter returns a validation error
- Unsupported chain name (e.g. a non-EVM chain) may return an error or empty result
- Upstream gas oracle data source unavailability may cause stale or failed responses
- Network timeout from the hosted Cloud Run service under high load

## How this service works

Read the current eth_gasPrice value from a supported public Base, Ethereum, or Arbitrum JSON-RPC endpoint.

## Output

A JSON object containing the queried chain name, the current base fee in Gwei (as a decimal), and three integer gas price tiers — safe_gwei (economical, slower confirmation), proposed_gwei (standard speed), and fast_gwei (priority, faster confirmation). Example: {chain: 'ethereum', base_fee: 14.5, safe_gwei: 15, proposed_gwei: 18, fast_gwei: 22}.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "chain"
     ],
     "properties": {
      "chain": {
       "type": "string",
       "description": "Blockchain network (e.g., ethereum, polygon, arbitrum)."
      }
     },
     "additionalProperties": true
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "success",
      "source",
      "fetched_at",
      "network",
      "chain_id",
      "gas_price_wei",
      "gas_price_gwei",
      "marketplace_metadata"
     ],
     "properties": {
      "source": {
       "type": "string"
      },
      "network": {
       "type": "string"
      },
      "success": {
       "type": "boolean"
      },
      "chain_id": {
       "type": "integer"
      },
      "fetched_at": {
       "type": "string"
      },
      "gas_price_wei": {
       "type": "string"
      },
      "gas_price_gwei": {
       "type": "number"
      },
      "marketplace_metadata": {
       "type": "object",
       "required": [
        "data_mode",
        "billable",
        "availability",
        "source"
       ],
       "properties": {
        "source": {
         "type": "string"
        },
        "billable": {
         "type": "boolean"
        },
        "data_mode": {
         "type": "string"
        },
        "availability": {
         "type": "string"
        }
       },
       "additionalProperties": true
      }
     },
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "source": "ethereum public JSON-RPC",
  "network": "ethereum",
  "success": true,
  "chain_id": 1,
  "fetched_at": "2026-08-07T07:32:31.701Z",
  "gas_price_wei": "109052773",
  "gas_price_gwei": 0.109052773,
  "marketplace_metadata": {
   "source": "public EVM JSON-RPC",
   "billable": true,
   "data_mode": "live_source",
   "availability": "operational"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dopaminedesk-gas-oracle-api-a8c03518/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ai-data-marketplace-1042299154756.us-central1.run.app](https://www.zero.xyz/host/ai-data-marketplace-1042299154756.us-central1.run.app/llms.txt)
