# CoinGecko Pro On-Chain Token Price – Base Network (WETH 0x4200…0006)

> CoinGecko Pro On-Chain Token Price – Base Network (WETH 0x4200…0006) is a paid API for AI agents from pro-api.coingecko.com, paid per call via x402, $0.010000/call, status unknown (last checked 2026-10-11).

Returns the current on-chain USD price for the WETH token (0x4200000000000000000000000000000000000006) on the Coinbase Base network via CoinGecko Pro's x402 micropayment endpoint.

## Facts

- Endpoint: GET https://pro-api.coingecko.com/api/v3/x402/onchain/simple/networks/base/token_price/0x4200000000000000000000000000000000000006?utm_source=zero.xyz
- Price: $0.010000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pro-api-coingecko-com-ab6fb228
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_w63dKksTTBnz9R2KY4zyW

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 pro-api-coingecko-com-ab6fb228
```

Example prompt: What's the current on-chain price of WETH (the Wrapped Ether token at 0x4200000000000000000000000000000000000006) on the Coinbase Base network, including its 24-hour price change and market cap?

## When to prefer this

Choose this endpoint when you need a real-time on-chain price for the WETH token specifically on the Coinbase Base network, especially in automated agent workflows where micropayment via x402 is acceptable. Prefer this over CoinGecko's standard simple/price endpoint when you need on-chain DEX-sourced pricing rather than aggregate CEX/CoinGecko pricing, and when working within Base network DeFi contexts.

## Known failure modes

- Invalid or unsupported token contract address returns 404 or empty result
- Payment failure (insufficient USDC balance) blocks the request via x402 protocol
- Rate limiting or authentication error if x402 payment is not properly handled
- Token exists but has no on-chain liquidity, resulting in missing or null price data
- Network outage on Base or CoinGecko data provider returns 503

## How this service works

Fetches the on-chain price for a specific token on the Base network by token address using CoinGecko Pro's x402 paid endpoint.

## Output

Returns a JSON object containing the current on-chain USD price for the specified token contract on Base, optionally including 24hr trading volume, market capitalization, 24hr price change percentage, and total reserve in USD — sourced from live DEX liquidity pools via CoinGecko Pro.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "include_24hr_vol": true,
   "include_market_cap": true,
   "include_24hr_price_change": true
  }
 },
 "output": {
  "type": "object",
  "example": {
   "0x4200000000000000000000000000000000000006": {
    "usd": 2450.5,
    "usd_24h_vol": 1250000000,
    "usd_24h_change": 2.35,
    "usd_market_cap": 29500000000
   }
  }
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "include_24hr_vol": {
       "type": "boolean"
      },
      "mcap_fdv_fallback": {
       "type": "boolean"
      },
      "include_market_cap": {
       "type": "boolean"
      },
      "include_inactive_source": {
       "type": "boolean"
      },
      "include_24hr_price_change": {
       "type": "boolean"
      },
      "include_total_reserve_in_usd": {
       "type": "boolean"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "data"
 ],
 "properties": {
  "data": {
   "type": "object",
   "required": [
    "id",
    "type",
    "attributes"
   ],
   "properties": {
    "id": {
     "type": "string"
    },
    "type": {
     "type": "string"
    },
    "attributes": {
     "type": "object",
     "required": [
      "token_prices",
      "h24_volume_usd",
      "market_cap_usd",
      "h24_price_change_percentage"
     ],
     "properties": {
      "token_prices": {
       "type": "object",
       "required": [
        "0x4200000000000000000000000000000000000006"
       ],
       "properties": {
        "0x4200000000000000000000000000000000000006": {
         "type": "string"
        }
       }
      },
      "h24_volume_usd": {
       "type": "object",
       "required": [
        "0x4200000000000000000000000000000000000006"
       ],
       "properties": {
        "0x4200000000000000000000000000000000000006": {
         "type": "string"
        }
       }
      },
      "market_cap_usd": {
       "type": "object",
       "required": [
        "0x4200000000000000000000000000000000000006"
       ],
       "properties": {
        "0x4200000000000000000000000000000000000006": {
         "type": "string"
        }
       }
      },
      "h24_price_change_percentage": {
       "type": "object",
       "required": [
        "0x4200000000000000000000000000000000000006"
       ],
       "properties": {
        "0x4200000000000000000000000000000000000006": {
         "type": "string"
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pro-api-coingecko-com-ab6fb228/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pro-api.coingecko.com](https://www.zero.xyz/host/pro-api.coingecko.com/llms.txt)
