# Bitcoin Mining Hashprice

> Bitcoin Mining Hashprice is a paid API for AI agents from payai.agentstools.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns the expected Bitcoin mining reward per petahash and terahash per second per day in BTC and USD, combined with network hashrate, current difficulty, next difficulty-retarget forecast, and block-subsidy vs. fee revenue split.

## Facts

- Endpoint: GET https://payai.agentstools.dev/mining/hashprice
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bitcoin-mining-hashprice-1b7e4244
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LZNQ-IByxGfgcwiYjA14V

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-mining-hashprice-1b7e4244
```

Example prompt: What's the current Bitcoin mining hashprice — give me expected daily earnings per petahash in both BTC and USD, plus the current network difficulty and when the next retarget is expected?

## When to prefer this

Choose this endpoint when you need a comprehensive, fused snapshot of Bitcoin mining economics in a single call — specifically when you need hashprice (revenue per unit of hashpower), difficulty data, retarget forecasts, and subsidy/fee split together rather than fetching each metric from separate sources. Ideal for mining dashboards, profitability calculators, or automated mining strategy agents that need real-time data without assembling multiple APIs.

## Known failure modes

- Unsupported fiat currency code returns an error or defaults to USD
- Network or upstream data provider outage may cause stale or unavailable data
- Missing x402 payment header or insufficient USDC balance results in 402 Payment Required response
- Malformed query parameter causes 400 Bad Request

## How this service works

Bitcoin mining hashprice: expected mining reward per petahash and per terahash per second per day, in BTC and USD, fused with the network hashrate, current difficulty, the next difficulty-retarget forecast and the block-subsidy and average-fee split. Informational, not advice.

## Output

A JSON object containing: hashprice per PH/s and per TH/s per day denominated in both BTC and the requested fiat currency (default USD), current network hashrate, current mining difficulty, estimated next difficulty retarget (block height and percentage change), and the breakdown of block reward between block subsidy and average transaction fees.

## 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",
     "required": [],
     "properties": {
      "fiat": {
       "type": "string",
       "description": "Fiat currency for the USD-equivalent figures (three-letter code such as USD or EUR); defaults to USD"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bitcoin-mining-hashprice-1b7e4244/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from payai.agentstools.dev](https://www.zero.xyz/host/payai.agentstools.dev/llms.txt)
