# Myworker Agent API – Gas Fee Lookup (kadar-gas)

> Myworker Agent API – Gas Fee Lookup (kadar-gas) is a paid API for AI agents from crypto-micro-agent.mykira.workers.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-20).

Returns current gas fees for Solana and/or EVM-compatible networks (Base, Ethereum, Arbitrum, Optimism), priced per call via x402 micropayment.

## Facts

- Endpoint: GET https://crypto-micro-agent.mykira.workers.dev/api/agent/kadar-gas?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/myworker-agent-api-gas-fee-lookup-kadar-gas-eb28b90a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SVx-0-5UXDZui3PjALrl8

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 myworker-agent-api-gas-fee-lookup-kadar-gas-eb28b90a
```

Example prompt: What are the current gas fees on Base right now — give me the gwei price and an estimate of what a standard 21k gas transfer would cost in USD?

## When to prefer this

Choose this endpoint when you need real-time gas fee data for Solana and/or EVM-compatible chains (Base, Ethereum, Arbitrum, Optimism) in a single pay-per-call micropayment model without an API key subscription. It is especially useful for agents that need to compare fees across multiple chains before executing a transaction.

## Known failure modes

- Invalid network name returns an error or empty result
- Network RPC unavailable causes a 5xx or timeout
- Missing or rejected x402 payment results in 402 Payment Required
- Requesting an unsupported chain name returns no data for that chain

## How this service works

Servis berbayar untuk bot/agen (x402): data pasaran Solana via Jupiter + RPC, dan servis AI via Workers AI. Bayar per panggilan dengan USDC di Solana, USDC di Base, atau SOL.

## Output

Returns a JSON object with gas fee data per requested network: for Solana, base fee in lamports and median priority tip in microlamports; for EVM chains (Base, Ethereum, Arbitrum, Optimism), current gwei price and estimated USD cost for a 21,000 gas transfer.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "example": {
      "rangkaian": "base"
     },
     "properties": {
      "rangkaian": {
       "type": "string",
       "description": "Pilihan: base | ethereum | arbitrum | optimism | solana | kosong = semua"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "hasil": {
   "solana": {
    "yuran_asas_flatten_lamport": 5000,
    "tip_keutamaan_median_mikrolamport": 2000
   },
   "rangkaian": {
    "base": {
     "gwei": 0.0156,
     "anggaran_usd_transfer_21k": 0.001112
    }
   }
  },
  "servis": "kadar-gas"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/myworker-agent-api-gas-fee-lookup-kadar-gas-eb28b90a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from crypto-micro-agent.mykira.workers.dev](https://www.zero.xyz/host/crypto-micro-agent.mykira.workers.dev/llms.txt)
