# chainquery Bitcoin getmininginfo RPC

> chainquery Bitcoin getmininginfo RPC is a paid API for AI agents from x402.chainquery.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Returns Bitcoin mining info (difficulty, network hashrate, mempool size, chain) from an independent Bitcoin Core full node via pay-per-call x402 micropayment

## Facts

- Endpoint: GET https://x402.chainquery.com/v1/rpc/getmininginfo
- 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/chainquery-bitcoin-getmininginfo-rpc-50562474
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_htg_CaseyYI17wzGSMX4-

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-bitcoin-getmininginfo-rpc-50562474
```

Example prompt: What is the current Bitcoin mining difficulty and network hashrate right now — pull it straight from a full Bitcoin Core node?

## When to prefer this

Use this endpoint when you need real-time Bitcoin mining statistics (difficulty, hashrate, mempool) from an independent full node without needing an API key — ideal for agents that want trustless, pay-as-you-go access via x402 micropayments rather than subscription-based Bitcoin data APIs.

## Known failure modes

- Payment failure: insufficient USDC balance triggers 402 response before data is returned
- Node sync lag: chainquery's independent node may be slightly behind chain tip
- Invalid params: malformed JSON array in query params returns RPC error
- Network timeout: full node RPC call takes too long under heavy mempool load

## How this service works

chainquery Bitcoin RPC: pay-per-call Bitcoin Core over x402, no API key. Mining-related info from chainquery's independent full node: difficulty, network hashrate, mempool, and chain. Bitcoin Core getmininginfo.

## Output

A JSON object with the getmininginfo result containing fields like blocks (current block height), currentblockweight, currentblocktx, difficulty (current mining difficulty), networkhashps (estimated network hashes per second), pooledtx (mempool transaction count), chain (mainnet/testnet), and warnings.

## Example request

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

## 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": "getmininginfo result"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chainquery-bitcoin-getmininginfo-rpc-50562474/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)
