# ScrapeMole Onchain Gas & Fee Estimates

> ScrapeMole Onchain Gas & Fee Estimates is a paid API for AI agents from onchain.scrapemole.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-12).

Returns real-time Base and Ethereum gas prices, fee estimates, and USD cost breakdowns for common transaction types

## Facts

- Endpoint: GET https://onchain.scrapemole.workers.dev/v1/gas?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scrapemole-onchain-gas-fee-estimates-4507acc9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EI03C2My-K0RGOPeIR5cs

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 scrapemole-onchain-gas-fee-estimates-4507acc9
```

Example prompt: What are the current gas fees on Base right now — give me the standard, fast, and slow priority fee tiers and what a basic ETH transfer would cost in USD?

## When to prefer this

Choose this endpoint when you need real-time gas fee data specifically for Base or Ethereum, especially when you want USD-denominated cost estimates for common transaction types alongside raw Gwei values. Ideal for agents that need to decide whether to proceed with a transaction, estimate costs before signing, or monitor network congestion. The pay-per-call x402 model (failed calls not charged) makes it low-risk for frequent polling. Prefer over free RPC endpoints when you need structured, pre-calculated USD costs and tiered priority fees in a single call.

## Known failure modes

- Payment failure via x402 if USDC balance is insufficient — call is not charged
- Network or RPC timeout if Base/Ethereum node is unavailable
- Stale data if the chain is experiencing block production delays
- Invalid or missing required parameters return a 400-level error without charge

## How this service works

Pay-per-call on-chain data for agents on Base and Ethereum, read directly from chain state: Chainlink USD prices (crypto, stablecoins, FX, metals; 10 per call), ERC-20 token info, wallet balances with USD values, transaction lookup with decoded ERC-20 transfers, ENS and Basename resolution (forward and reverse), gas and fee estimates in USD, and Uniswap v3 DEX prices for long-tail tokens (verify a payment arrived). USDC via x402; failed calls are never charged.

Payments: x402 v2, scheme "exact", USDC on Base (eip155:8453). The payment is verified before the work and settled only when the response is 200. Terms: https://onchain.scrapemole.workers.dev/terms

## Output

Returns a JSON object with the current block number, chain name, ETH/USD price, base fee in Gwei, gas price in Gwei, L1 data fee in ETH, block fullness percentage, priority fee tiers (fast/standard/slow in Gwei), and a list of common transaction type cost estimates showing gas units used, ETH cost, and USD cost.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "block": 52479060,
  "chain": "base",
  "ethUsd": 2533.08,
  "estimates": [
   {
    "gas": 21000,
    "action": "ETH transfer",
    "standard": {
     "eth": "0.000001358",
     "usd": 0.0034
    }
   }
  ],
  "baseFeeGwei": 0.005,
  "gasPriceGwei": 0.006,
  "l1DataFeeEth": "0.000001232",
  "blockFullness": 0.1,
  "priorityFeeGwei": {
   "fast": 0.0022,
   "slow": 0.0001,
   "standard": 0.001
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scrapemole-onchain-gas-fee-estimates-4507acc9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from onchain.scrapemole.workers.dev](https://www.zero.xyz/host/onchain.scrapemole.workers.dev/llms.txt)
