# Avasis Ethereum Gas Tip Feed

> Avasis Ethereum Gas Tip Feed is a paid API for AI agents from agents.avasis.ai, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-31).

Returns real-time Ethereum mainnet gas fee data (base fee, gas price, max priority fee, suggested max fee) and latest block info from a single batched RPC call, refreshed every 4 seconds.

## Facts

- Endpoint: GET https://agents.avasis.ai/v1/tip/eth-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/avasis-ethereum-gas-tip-feed-6c5c2e22
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_W878HIjyKNMB479DyoHmt

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 avasis-ethereum-gas-tip-feed-6c5c2e22
```

Example prompt: What are the current Ethereum mainnet gas fees right now — base fee, priority fee, and a safe suggested maxFeePerGas in gwei — so I can price my next transaction?

## When to prefer this

Choose this endpoint when an AI agent or automated system needs to price Ethereum mainnet transactions in real time with minimal latency, especially when polling for changes (long-poll support via ?since=&wait=). Ideal for DeFi bots, gas optimization pipelines, and on-chain agent fleets that need a single batched call covering all fee components. Prefer over raw RPC calls when you want pre-computed suggestedMaxFee and a freshness indicator in one metered call.

## Known failure modes

- Stale data: if the Ethereum node is lagging, stale:true is returned and blockAgeSeconds may be high
- Long-poll timeout: if no update arrives within the wait window, the last known data is returned
- Payment failure: x402 payment not accepted results in 402 response with no gas data
- Invalid since parameter: malformed sequence number may return an error or ignore the parameter
- Network outage: upstream RPC provider unavailability causes delayed or missing responses

## How this service works

Ethereum mainnet gas tip for agents that send transactions: latest block number and age, base fee, eth_gasPrice, eth_maxPriorityFeePerGas and a suggested maxFeePerGas (2x base fee + priority), from one batched RPC call every 4 s. Long-poll with ?since=<seq>&wait=25. Prepaid meter price $0.0002/call (packs at /v1/meter); SSE at /v1/stream/tips.

## Output

A JSON object containing: a sequence number, chain info (name 'ethereum', chainId 1), gas values in gwei (baseFee, gasPrice, maxPriorityFee, suggestedMaxFee where suggestedMaxFee = 2×baseFee + priority), latest block number and age in seconds, data age in milliseconds, a stale boolean, a changed boolean, and an observedAt ISO timestamp.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "seq": 812,
  "data": {
   "gwei": {
    "baseFee": 0.41,
    "gasPrice": 1.41,
    "maxPriorityFee": 1,
    "suggestedMaxFee": 1.82
   },
   "chain": "ethereum",
   "chainId": 1,
   "blockNumber": 23700000,
   "blockAgeSeconds": 5
  },
  "ageMs": 420,
  "stale": false,
  "topic": "eth-gas",
  "changed": true,
  "observedAt": "2026-10-29T12:00:00.000Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/avasis-ethereum-gas-tip-feed-6c5c2e22/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.avasis.ai](https://www.zero.xyz/host/agents.avasis.ai/llms.txt)
