# AgentEarn x402 — Base Gas Price

> AgentEarn x402 — Base Gas Price is a paid API for AI agents from x402-20260909-agent.projectk.org, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Returns live Base network gas price tiers (standard, fast, instant) in Gwei, settled via x402 micropayment in USDC on Base mainnet.

## Facts

- Endpoint: GET https://x402-20260909-agent.projectk.org/gas
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentearn-x402-base-gas-price-c289f320
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RU5SX6wP9IXlqmQr_RwwC

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 agentearn-x402-base-gas-price-c289f320
```

Example prompt: What are the current gas prices on Base — standard, fast, and instant — right now?

## When to prefer this

Choose this endpoint when you need real-time Base network gas prices without API key registration, and you're already operating in an x402 micropayment context with a funded Base wallet. Ideal for agents that need pay-as-you-go gas data without subscription overhead. Prefer over free alternatives when you need a reliable, operator-maintained feed with Blocknative as the source.

## Known failure modes

- Payment failure: wallet lacks sufficient USDC on Base mainnet — endpoint returns HTTP 402
- Blocknative data unavailable: upstream provider outage may cause stale or missing gas data
- Network congestion: response latency may increase during high Base network activity
- Invalid wallet/payment credentials: x402 payment handshake fails, returning auth error

## How this service works

Pay-per-call live data APIs settled in USDC on Base (Ethereum) mainnet via x402. No accounts, no API keys — just a wallet. Covers live crypto ticker prices, GitHub repo metrics, Base gas price, and token market data. Payment goes to the operator's Base address.

## Output

A JSON object with a 'gas' field containing three numeric sub-fields — standard, fast, and instant — representing gas price tiers in Gwei, plus a 'source' field indicating the data provider (Blocknative).

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "gas": {
   "fast": 2,
   "instant": 3,
   "standard": 1
  },
  "source": "blocknative"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentearn-x402-base-gas-price-c289f320/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-20260909-agent.projectk.org](https://www.zero.xyz/host/x402-20260909-agent.projectk.org/llms.txt)
