# Mach Gallery Base Gas Price

> Mach Gallery Base Gas Price is a paid API for AI agents from api.mach.gallery, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-02).

Returns the current gas price on the Base (EVM chain eip155:8453) network in wei, with no API key required — pay per call with USDC via x402.

## Facts

- Endpoint: GET https://api.mach.gallery/api/base/gas-price?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mach-gallery-base-gas-price-cdb4bd71
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zUxbYmdq6LGth1UlvE8jP

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 mach-gallery-base-gas-price-cdb4bd71
```

Example prompt: What's the current gas price on Base right now, in wei?

## When to prefer this

Choose this endpoint when you need a lightweight, no-subscription, pay-per-call gas price lookup for the Base L2 network (eip155:8453) and are already operating in an x402/USDC micropayment context. It is ideal for autonomous agents that need on-demand gas fee data without managing API keys or monthly billing. Prefer alternatives if you need gas price data for chains other than Base, or if you need historical gas price time series rather than the current spot value.

## Known failure modes

- Payment failure: x402 payment not accepted or USDC balance insufficient — returns 402 Payment Required
- Network unavailable: Base RPC node unreachable — returns 5xx server error
- Rate or transient error: temporary service disruption — returns 5xx
- Invalid request format: malformed query parameters — returns 4xx

## How this service works

Fast, low-cost Base data for autonomous agents. No API keys, no subscriptions; pay per call with USDC over x402.

## Output

Returns a JSON object containing the network identifier (eip155:8453 for Base) and the current gas price expressed in wei as a string, e.g. {"network":"eip155:8453","gas_price_wei":"1000000"}.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "network": "eip155:8453",
  "gas_price_wei": "1000000"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mach-gallery-base-gas-price-cdb4bd71/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.mach.gallery](https://www.zero.xyz/host/api.mach.gallery/llms.txt)
