# Vextorium Gas Price & USD Cost Estimator

> Vextorium Gas Price & USD Cost Estimator is a paid API for AI agents from api.vextorium.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-01).

Returns live gas prices (gwei, base fee, priority fee) for Base or Ethereum and estimates the USD cost of an ETH transfer, ERC-20 transfer, and DEX swap using the Chainlink ETH/USD oracle.

## Facts

- Endpoint: POST https://api.vextorium.com/gas-red-pago?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/vextorium-gas-price-usd-cost-estimator-168b7bc4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nXdutBq4FW1paEFCleEKf

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 vextorium-gas-price-usd-cost-estimator-168b7bc4 -d '<json body>'
```

Example prompt: What are the current gas prices on Base right now — give me the base fee, priority fee, and how much an ETH transfer, ERC-20 transfer, and DEX swap would cost in USD?

## When to prefer this

Use this endpoint when you need real-time gas cost estimates denominated in USD for Base or Ethereum, especially when you need all three common transaction types (ETH transfer, ERC-20 transfer, DEX swap) priced together in one call. Prefer this over generic RPC calls when you want Chainlink-oracle-priced USD estimates rather than raw gwei values, or when you specifically need the Base L1 data fee breakdown. Not suitable for historical gas data or networks other than Base and Ethereum.

## Known failure modes

- Unsupported network value (must be 'base' or 'ethereum') returns an error
- Chainlink oracle unavailable may return null price fields
- RPC node downtime may cause null block/fee fields
- Network congestion may cause stale data
- Missing or malformed 'red' field in request body causes validation error

## How this service works

Live gas price on Base or Ethereum (gwei, base fee, priority fee) plus estimated USD cost of an ETH transfer, an ERC-20 transfer and a DEX swap, including Base L1 data fee. Priced with the Chainlink ETH/USD oracle.

## Output

Returns a JSON object with the network name, current block number, gas price in gwei, base fee in gwei, priority fee in gwei, ETH/USD price (from Chainlink oracle), and estimated costs in both ETH and USD for three transaction types: a simple ETH transfer, an ERC-20 token transfer, and a DEX swap. For Base, also includes the L1 data fee component.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [],
     "properties": {
      "red": {
       "enum": [
        "base",
        "ethereum"
       ],
       "type": "string",
       "description": "Network: base or ethereum"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "red": {
       "type": [
        "string",
        "null"
       ]
      },
      "nota": {
       "type": [
        "string",
        "null"
       ]
      },
      "bloque": {
       "type": [
        "number",
        "null"
       ]
      },
      "fuente": {
       "type": [
        "string",
        "null"
       ]
      },
      "base_fee_gwei": {
       "type": [
        "number",
        "null"
       ]
      },
      "coste_estimado": {
       "type": [
        "object",
        "null"
       ],
       "properties": {
        "swap_dex": {
         "type": [
          "object",
          "null"
         ],
         "properties": {
          "eth": {
           "type": [
            "number",
            "null"
           ]
          },
          "usd": {
           "type": [
            "number",
            "null"
           ]
          }
         }
        },
        "transferencia_eth": {
         "type": [
          "object",
          "null"
         ],
         "properties": {
          "eth": {
           "type": [
            "number",
            "null"
           ]
          },
          "usd": {
           "type": [
            "number",
            "null"
           ]
          }
         }
        },
        "transferencia_erc20": {
         "type": [
          "object",
          "null"
         ],
         "properties": {
          "eth": {
           "type": [
            "number",
            "null"
           ]
          },
          "usd": {
           "typ
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "red": "base",
  "coste_estimado": {
   "transferencia_erc20": {
    "eth": 4.3e-7,
    "usd": 0.0012
   }
  },
  "precio_eth_usd": 2691.22,
  "precio_gas_gwei": 0.006
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/vextorium-gas-price-usd-cost-estimator-168b7bc4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.vextorium.com](https://www.zero.xyz/host/api.vextorium.com/llms.txt)
