# CRA Agent Gas Fee Cost Estimator

> CRA Agent Gas Fee Cost Estimator is a paid API for AI agents from api.cra-agent.tech, paid per call via x402, $0.0005/call, status unknown (last checked 2026-09-19).

Returns the estimated transaction cost in USDC for a given amount of gas, calculated at the current and next predicted base fee

## Facts

- Endpoint: GET https://api.cra-agent.tech/v1/paid/fees/estimate
- Price: $0.0005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cra-agent-gas-fee-cost-estimator-888610a5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_bgFJs5B2sTC7Bwc_SB717

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 cra-agent-gas-fee-cost-estimator-888610a5
```

Example prompt: What would a standard ETH transfer using 21000 gas cost in USDC right now, and what will it cost at the next block's base fee?

## When to prefer this

Use this endpoint when you need a real-time USDC-denominated cost estimate for an Ethereum transaction given a specific gas amount. It is especially useful for pre-flight cost checks before submitting a transaction, or for helping users decide whether to transact now or wait based on next-block base fee projections. Prefer this over generic gas price APIs when you need the cost expressed in USDC rather than in Gwei or ETH.

## Known failure modes

- Missing or invalid gas parameter returns an error or default response
- Gas value of 0 or negative integer may cause unexpected results
- Stale base fee data if the underlying RPC source is lagging
- Network congestion spikes may make the 'next base fee' estimate inaccurate
- Rate limiting or payment failure if x402 payment not properly handled

## How this service works

Cost in USDC of a transaction with the given gas at current and next base fee (?gas=21000)

## Output

Returns the estimated USDC cost of executing a transaction with the specified gas amount, evaluated at both the current base fee and the next projected base fee. This gives the user a real-time and forward-looking view of transaction costs denominated in USDC.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "gas": {
       "type": "integer",
       "example": 21000,
       "description": "Gas the transaction would use."
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cra-agent-gas-fee-cost-estimator-888610a5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.cra-agent.tech](https://www.zero.xyz/host/api.cra-agent.tech/llms.txt)
