# Cortex Cloud Gas Oracle

> Cortex Cloud Gas Oracle is a paid API for AI agents from api.cortexcloud.org, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-14).

Returns the current base fee and priority fee (gas price) for a specified blockchain, powered by Alchemy, via x402 micropayment.

## Facts

- Endpoint: GET https://api.cortexcloud.org/v1/data/gas-oracle
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cortex-cloud-gas-oracle-8484c5ec
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VzjNsKcwTE8ACMcurg3HK

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 cortex-cloud-gas-oracle-8484c5ec
```

Example prompt: What's the current gas price on Ethereum right now — both the base fee and the priority fee I should include?

## When to prefer this

Choose this endpoint when you need real-time, reliable gas price data (base fee + priority fee) for EVM-compatible chains, especially within an agent workflow that already uses x402 USDC micropayments on Base. It is particularly suited for pre-transaction gas estimation, cost-gating DeFi operations, or any automated agent that submits on-chain transactions and needs accurate EIP-1559 parameters without managing an Alchemy API key directly.

## Known failure modes

- Unsupported chain identifier returns an error or empty result
- Alchemy backend outage causes upstream failure
- Missing or invalid chain parameter results in a 400-level error
- Payment failure via x402 if USDC balance is insufficient or Base network is congested

## How this service works

One pay-per-call API for AI agents: optimization, AI, research, on-chain data, and automation — all settled in USDC on Base via x402. Discover via MCP and Bazaar, estimate free, pay per call. No API keys, no signup.

## Output

Returns the current base fee and priority fee (gas price) for the requested blockchain network, sourced from Alchemy's gas oracle. Typical response includes EIP-1559 parameters: base fee per gas and max priority fee per gas, expressed in standard units (e.g. gwei).

## Request schema (JSON Schema)

```json
{
 "properties": {
  "input": {
   "properties": {
    "body": {
     "type": "object",
     "properties": {}
    }
   }
  },
  "output": {
   "properties": {
    "example": {}
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "format": "application/json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cortex-cloud-gas-oracle-8484c5ec/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.cortexcloud.org](https://www.zero.xyz/host/api.cortexcloud.org/llms.txt)
