80trust / 100
Mining Hashprice
by mining-hashprice in Weather & location
x402 APIPassing, checked 1 h ago
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.
GET https://api.agentstools.dev/mining/hashprice
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 27 ms typical, 113 ms slowest 5%
- Last check
- 1 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.agentstools.dev/mining/hashprice?fiat=USD"import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.agentstools.dev%2Fmining%2Fhashprice
const res = await pay("https://api.agentstools.dev/mining/hashprice?fiat=USD");
console.log(await res.json());Example input
{
"fiat": "USD"
}Example output
{
"difficulty": 133869853540305.4,
"difficulty_adjustment": {
"difficulty_change_percent": -3.79,
"remaining_blocks": 445
},
"hashprice": {
"hashprice_btc_per_ph_day": 0.00049,
"hashprice_usd_per_th_day": 0.033
},
"network_hashrate_ehs": 907.29,
"price_usd": 68000,
"sources": {
"partial": false
}
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 1 h ago | Passed | 402 | 29 ms | $0.01 |
| 5 h ago | Passed | 402 | 22 ms | $0.01 |
| 8 h ago | Passed | 402 | 199 ms | $0.01 |
| 12 h ago | Passed | 402 | 23 ms | $0.01 |
| 15 h ago | Passed | 402 | 27 ms | $0.01 |
| 20 h ago | Passed | 402 | 71 ms | $0.01 |
| 23 h ago | Passed | 402 | 113 ms | $0.01 |
| 26 h ago | Passed | 402 | 22 ms | $0.01 |
| 32 h ago | Passed | 402 | 22 ms | $0.01 |