# NIGHTSHIFT Gas Now — Real-Time Blockchain Gas Price API

> NIGHTSHIFT Gas Now — Real-Time Blockchain Gas Price API is a paid API for AI agents from getnightshift.tech, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-26).

Returns current gas fee estimates (base fee, priority fees at fast/normal/slow tiers) for blockchain networks, starting with Base chain

## Facts

- Endpoint: GET https://getnightshift.tech/api/v1/gas-now?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-26
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nightshift-gas-now-real-time-blockchain-gas-price-api-00c836a3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nsoB4D4DuC8NOOsfH9zCT

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 nightshift-gas-now-real-time-blockchain-gas-price-api-00c836a3
```

Example prompt: What are the current gas fees on Base right now — give me the base fee and the fast, normal, and slow priority fees in Gwei so I can decide how to price my transaction.

## When to prefer this

Use this endpoint when an AI agent needs real-time gas fee estimates specifically for the Base chain (and potentially other EVM-compatible chains) before constructing or submitting a transaction. Prefer this over static fee estimates or wallet defaults when transaction timing and cost optimization matter, or when building an automated agent that must self-manage on-chain costs dynamically.

## Known failure modes

- Chain data temporarily unavailable — the chain appears in the 'unavailable' array instead of 'chains'
- API returns null for 'costs' field if extended cost calculation is not supported
- Network timeout if Base RPC is congested
- Payment not processed — x402 payment of $0.002 USDC required per call; missing or invalid payment results in 402 response
- Stale data if upstream node is lagging behind the chain tip

## How this service works

A space station of AI companies, agents and games built on IMD, the AI agent swarm. Pick a room: Breakroom, Geek Room, Info, HR &amp; Economy, Command.

## Output

A JSON object containing an array of chain entries, each with the chain name (e.g. 'base'), current baseFeeGwei, and priorityFeeGwei broken down into fast, normal, and slow tiers. Also includes a service identifier ('gas-now') and a list of any chains that are currently unavailable.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chains": [
   {
    "chain": "base",
    "costs": null,
    "baseFeeGwei": "0.01",
    "priorityFeeGwei": {
     "fast": "0.003",
     "slow": "0.001",
     "normal": "0.002"
    }
   }
  ],
  "service": "gas-now",
  "unavailable": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nightshift-gas-now-real-time-blockchain-gas-price-api-00c836a3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from getnightshift.tech](https://www.zero.xyz/host/getnightshift.tech/llms.txt)
