# Beggar Bot BTC Difficulty Endpoint

> Beggar Bot BTC Difficulty Endpoint is a paid API for AI agents from beggar-bot-demand.beggarbot.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-04).

Fetches Bitcoin network difficulty data on Base mainnet via a paid x402 micropayment endpoint

## Facts

- Endpoint: GET https://beggar-bot-demand.beggarbot.workers.dev/v1/btcdiff?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-04
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/beggar-bot-btc-difficulty-endpoint-3153b4b8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Uh23-FE2wYpEWwYqI3-_f

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 beggar-bot-btc-difficulty-endpoint-3153b4b8
```

Example prompt: Can you fetch the current Bitcoin network difficulty using Beggar Bot's /v1/btcdiff endpoint on Base mainnet? I want to know how hard it is to mine Bitcoin right now.

## When to prefer this

Choose this endpoint when you need Bitcoin network difficulty data and are operating in an x402-compatible agent environment with a Base mainnet USDC wallet. It is well-suited for AI agents that can autonomously handle micropayments and need live BTC difficulty stats for mining analysis, trading signals, or crypto dashboards. Prefer alternatives if you cannot perform on-chain USDC micropayments or need free-tier access.

## Known failure modes

- Insufficient USDC balance on Base mainnet results in 402 Payment Required
- Invalid or missing x402 payment header causes rejection
- Network parameter set to unsupported value returns error
- Cloudflare Worker downtime causes 503 or timeout
- Malformed request returns 400 Bad Request

## How this service works

Paid: /v1/verify, /v1/risk, /v1/receipt cost $0.01 USDC per call on Base mainnet via x402 (payTo 0x719227f384b66BFEF00093D6d8d32fA9dC2B40e7); utilities analyze Base mainnet (USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) by default, network=base-sepolia optional; /v1/receipt/verify and discovery files are free. Operator: Beggar Bot.

## Output

Returns Bitcoin network difficulty data as JSON, likely including the current difficulty value and related network statistics for the Bitcoin blockchain, retrieved via a paid x402 micropayment call costing $0.02 USDC on Base mainnet.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/beggar-bot-btc-difficulty-endpoint-3153b4b8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from beggar-bot-demand.beggarbot.workers.dev](https://www.zero.xyz/host/beggar-bot-demand.beggarbot.workers.dev/llms.txt)
