# Bitcoin Network Hashrate & Difficulty

> Bitcoin Network Hashrate & Difficulty is a paid API for AI agents from anibalb.duckdns.org, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-31).

Returns the current Bitcoin network hashrate (in GH/s), mining difficulty, and latest block metadata via a pay-per-call x402 API

## Facts

- Endpoint: GET https://anibalb.duckdns.org/x402/btc-hashrate?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bitcoin-network-hashrate-difficulty-41dc511b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_L3pdrAtYS0gdlCCaC1the

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 bitcoin-network-hashrate-difficulty-41dc511b
```

Example prompt: What is the current Bitcoin network hashrate and mining difficulty, and what does the latest block look like?

## When to prefer this

Choose this endpoint when you need a quick, no-account, no-API-key lookup of Bitcoin network statistics (hashrate, difficulty, latest block) and are operating in an x402-compatible payment environment using USDC on Base. Prefer this over full blockchain node APIs when you don't need full transaction history or mempool data, just current network state.

## Known failure modes

- Payment failure (402): USDC payment on Base not included or insufficient — endpoint returns HTTP 402
- Network or upstream data unavailability: the upstream Bitcoin data source may be temporarily unreachable, returning a 5xx error
- Stale data: the response may lag real-time by a few minutes depending on block confirmation timing

## How this service works

Public data and utility APIs paid per call in USDC on Base (x402). No accounts, no API keys. 174 routes: crypto/equity data, onchain reads, DNS/email/security intel, geo/weather, x402 payment diagnostics, dev utilities and more.

## Output

A JSON object containing: the current network difficulty (floating-point scientific notation), the current hashrate in gigahashes per second (GH/s), and metadata about the latest block including its hash, height, transaction count, and size in bytes.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "difficulty": "1.4057768005192E14",
  "hashrate_gh": "1034246848135",
  "latest_block": {
   "hash": "00000000000000000001e52519701555d66567a18da5d8fcde7d2895cf56737e",
   "n_tx": 2345,
   "size": 1670000,
   "height": 973494
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bitcoin-network-hashrate-difficulty-41dc511b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from anibalb.duckdns.org](https://www.zero.xyz/host/anibalb.duckdns.org/llms.txt)
