# Tarnak x402 Toolkit — Base Gas Price API

> Tarnak x402 Toolkit — Base Gas Price API is a paid API for AI agents from api.capousd-student-tools.me, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-31).

Returns current Base network gas estimates including base fee, gas price, priority fee, and suggested max fee in Gwei

## Facts

- Endpoint: GET https://api.capousd-student-tools.me/v1/gas?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tarnak-x402-toolkit-base-gas-price-api-674d166d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bM-m0sv_tQ1g37eNKxG2B

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 tarnak-x402-toolkit-base-gas-price-api-674d166d
```

Example prompt: What are the current gas prices on Base — give me the base fee, priority fee, and suggested max fee in Gwei so I can set my transaction parameters correctly.

## When to prefer this

Use this endpoint when you need real-time Base network gas estimates without API key registration, especially for autonomous AI agents that need to pay per call via x402/USDC micropayments. Prefer this over manual RPC calls when you want a clean JSON gas summary without raw RPC boilerplate, and when operating on the Base (eip155:8453) chain specifically.

## Known failure modes

- Network or RPC node unavailable — may return 5xx error
- Rate limit exceeded beyond 10 free calls per IP per day without payment — returns 402 Payment Required
- Payment failure via x402 protocol — call is not executed
- Stale data if the underlying Base RPC node lags behind the chain tip

## How this service works

Keyless pay-per-call APIs for AI agents on Base: token risk verdict, rug/honeypot report, gas estimate, URL-to-markdown and more. x402 v2, USDC, no API key or signup. 10 free verdicts per IP per day.

## Output

A JSON object containing the current block number, timestamp, chain identifier (base / eip155:8453), base fee in Gwei, gas price in Gwei, priority fee in Gwei, and suggested max fee in Gwei — all sourced from the latest Base block.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ts": "2026-10-27T00:00:00Z",
  "block": 53184656,
  "chain": "base",
  "network": "eip155:8453",
  "base_fee_gwei": 0.0012,
  "gas_price_gwei": 0.002,
  "priority_fee_gwei": 0.0008,
  "suggested_max_fee_gwei": 0.002
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tarnak-x402-toolkit-base-gas-price-api-674d166d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.capousd-student-tools.me](https://www.zero.xyz/host/api.capousd-student-tools.me/llms.txt)
