# Datakoot Gas Now — Base Network Gas Price

> Datakoot Gas Now — Base Network Gas Price is a paid API for AI agents from x402.datakoot.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-11).

Returns the current gas price on the Base mainnet blockchain network in both wei and gwei units

## Facts

- Endpoint: POST https://x402.datakoot.com/api/gas_now?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/datakoot-gas-now-base-network-gas-price-e33ef048
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Sl3aRlVFSY1VgB1GuBj4b

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 datakoot-gas-now-base-network-gas-price-e33ef048 -d '<json body>'
```

Example prompt: What's the current gas price on Base mainnet right now — give me both the wei and gwei values so I can decide whether to submit my transaction.

## When to prefer this

Choose this endpoint when you need a quick, real-time gas price read from Base mainnet and want a simple wei/gwei response without running your own RPC node. It is ideal for agents that need to gate transactions on gas cost, log gas history, or display current fees to users. The $0.002 USDC per-call pricing via x402 makes it suitable for pay-per-use agentic workflows, while the free MCP tier (100 calls/day) suits development and low-frequency monitoring.

## Known failure modes

- Network or RPC unavailability may cause a 5xx error with no gas data returned
- Payment failure via x402 (insufficient USDC balance) results in a 402 response before the tool is invoked
- Malformed input (wrong method or body type) returns a validation error
- Gas price data may be momentarily stale if the underlying RPC node is lagging

## How this service works

48 live public-data tools (security, packages, SEC filings, economy, FX, weather, domains, Federal Register, Base) for AI agents. $0.002 USDC per call on Base via x402, charged only on success. The same tools are free for 100 calls/day via MCP at <server>.datakoot.com/mcp.

## Output

Returns a JSON object with three fields: 'network' (string, e.g. 'base-mainnet'), 'gas_price_wei' (string, the current gas price in wei), and 'gas_price_gwei' (string, the current gas price in gwei). Both price fields are returned as strings representing numeric values.

## 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": {
    "body": {
     "type": "object",
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "GET"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json"
     ],
     "type": "string"
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {}
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "network": "base-mainnet",
  "gas_price_wei": "6000000",
  "gas_price_gwei": "0.006"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/datakoot-gas-now-base-network-gas-price-e33ef048/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.datakoot.com](https://www.zero.xyz/host/x402.datakoot.com/llms.txt)
