# Base Network Effective Gas Price Calculator

> Base Network Effective Gas Price Calculator is a paid API for AI agents from signalharness.ai, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Calculates the effective gas price for a transaction on the Base (OP Stack) network given caller-supplied EVM fee parameters

## Facts

- Endpoint: POST https://signalharness.ai/api/agent/services/base_effective_gas_price_calculate/invoke
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-network-effective-gas-price-calculator-4fcb358d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_r-2pnT5zqq8sEscd5cbPv

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 base-network-effective-gas-price-calculator-4fcb358d -d '<json body>'
```

Example prompt: Given a base fee of 100 gwei, max fee per gas of 120 gwei, and max priority fee per gas of 5 gwei, calculate the effective gas price that would actually be paid on the Base mainnet network.

## When to prefer this

Choose this endpoint when you need to deterministically compute the effective gas price from caller-supplied EVM fee parameters on the Base (OP Stack) network, rather than fetching live gas prices from the chain. It is ideal for pre-flight transaction cost verification, fee auditing, or building gas estimation tooling where you already have the fee parameters and want to derive the realized cost without a live RPC call. It is not suitable for fetching current on-chain gas prices or forecasting future gas prices.

## Known failure modes

- Invalid or malformed request_json input returns an error
- Missing required fee parameter fields in the JSON payload causes computation failure
- Providing non-numeric values for gas parameters results in a validation error
- request_json string exceeding 65536 characters is rejected
- Network or service unavailability returns a failed status in the receipt

## How this service works

Explore 330 pay-per-call x402 API services and 27 agent-native digital products, with Base USDC pricing, secure Polar checkout, and free discovery.

## Output

Returns a JSON object containing the computed effective_gas_price, realized_priority_fee_per_gas, cap_headroom, execution_fee, and the original input parameters (base_fee_per_gas, max_fee_per_gas, max_priority_fee_per_gas, gas). Also includes network_context describing the OP Stack fee model, accepted chain IDs (Base mainnet 8453 and testnet 84532), and the mode used (evm_effective_price). A warnings field notes that this does not estimate future or live fees. The response also includes a receipt with payment metadata.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "request_json": {
   "type": "string",
   "maxLength": 65536,
   "minLength": 2
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "replay": false,
  "result": {
   "warnings": [
    "Does not estimate future or live fees."
   ],
   "service_id": "base_effective_gas_price_calculate",
   "analysis_json": "{\"base_fee_per_gas\":\"100\",\"cap_headroom\":\"20\",\"effective_gas_price\":\"105\",\"execution_fee\":\"0\",\"gas\":\"0\",\"max_fee_per_gas\":\"120\",\"max_priority_fee_per_gas\":\"5\",\"mode\":\"evm_effective_price\",\"network_context\":{\"accepted_chain_ids\":[\"8453\",\"84532\"],\"deposit_transaction_type\":\"0x7e\",\"fee_model\":\"L2 execution plus caller-supplied L1 data/operator components\",\"protocol_family\":\"OP Stack\"},\"realized_priority_fee_per_gas\":\"5\"}",
   "evidence_scope": "caller_supplied_data",
   "analyzed_network": "base"
  },
  "status": "succeeded",
  "receipt": {
   "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
   "usage": [],
   "status": "succeeded",
   "network": "eip155:8453",
   "artifacts": [],
   "endedAtMs": 0,
   "latencyMs": 0,
   "paymentId": "example-payment",
   "receiptId": "example-receipt",
   "requestId": "example-request",
   "serviceId": "base_effective_gas_price_calculate",
   "executionId": "example-execution",
   "startedAtMs": 0,
   "amountAtomic": "5000",
   "resultSha256": "df883f12ec84e2f1145d002313d7cc571026ede628c6a71a044ec0a367e34c35",
   "serviceVersion": "1.0.0",
   "settlementReference": "0x0000000000000000000000000000000000000000000000000000000000000000"
  },
  "artifacts": [],
  "requestId": "example-request",
  "executionId": "example-execution"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-network-effective-gas-price-calculator-4fcb358d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from signalharness.ai](https://www.zero.xyz/host/signalharness.ai/llms.txt)
