# chainquery getnetworkhashps – Bitcoin Network Hash Rate

> chainquery getnetworkhashps – Bitcoin Network Hash Rate is a paid API for AI agents from x402.chainquery.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-11).

Returns the estimated Bitcoin network hash rate (hashes per second) over a configurable window of blocks, sourced from chainquery's independent full node via Bitcoin Core getnetworkhashps RPC.

## Facts

- Endpoint: GET https://x402.chainquery.com/v1/rpc/getnetworkhashps?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chainquery-getnetworkhashps-bitcoin-network-hash-rate-1a49fd85
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nBviUVRoKUD2_mfE-L86z

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 chainquery-getnetworkhashps-bitcoin-network-hash-rate-1a49fd85
```

Example prompt: What's the current Bitcoin network hash rate? Use chainquery's independent full node to call getnetworkhashps over the last 120 blocks.

## When to prefer this

Use this endpoint when you need a pay-per-call, keyless Bitcoin network hash rate estimate from an independent full node, particularly when you want direct Bitcoin Core RPC access without managing API credentials or subscriptions. Prefer over proprietary blockchain APIs when trustless, node-level data is important.

## Known failure modes

- Invalid or malformed params JSON array returns an RPC error
- Payment failure or insufficient USDC balance returns HTTP 402
- Node temporarily unavailable returns 5xx error
- Block window parameter out of acceptable range returns RPC error

## How this service works

chainquery Bitcoin RPC: pay-per-call Bitcoin Core over x402, no API key. Estimated network hashes per second over a window of blocks, from chainquery's independent full node. Bitcoin Core getnetworkhashps.

## Output

A JSON object with a 'result' field containing the estimated network hashes per second as a floating-point number, representing Bitcoin mining power over the specified block window as reported by chainquery's Bitcoin Core node.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "params": "[120]"
  }
 }
}
```

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "params": {
       "type": "string",
       "description": "optional: JSON-encoded array of positional RPC params"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "result": {
       "description": "getnetworkhashps result"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chainquery-getnetworkhashps-bitcoin-network-hash-rate-1a49fd85/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.chainquery.com](https://www.zero.xyz/host/x402.chainquery.com/llms.txt)
