Startmining Bitcoin Mining Data
v1.2.0Bitcoin mining data from a self-hosted node: hashprice, profitability, weekly/monthly stats, history
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_market_data
Get current Bitcoin market and mining data including price, hashprice, difficulty, and network stats
get_hashprice
Get current hashprice (mining revenue per PH/day) with detailed breakdown
get_difficulty
Get current difficulty and next adjustment prediction
get_halving_info
Get Bitcoin halving information - current era, next halving date, supply stats
get_price_history
Get historical Bitcoin prices
| Parameter | Type | Description |
|---|---|---|
from | string | Start date (YYYY-MM-DD) |
granularity | string | Data granularity (default: day). For calendar-month averages use get_monthly_averages |
to | string | End date (YYYY-MM-DD) |
get_difficulty_history
Get historical difficulty and hashrate data
| Parameter | Type | Description |
|---|---|---|
from | string | Start date (YYYY-MM-DD) |
to | string | End date (YYYY-MM-DD) |
calculate_profitability
Calculate mining profitability for given hashrate and electricity cost
| Parameter | Type | Description |
|---|---|---|
electricity_cost * | number | Electricity cost in $/kWh |
hashrate_th * | number | Hashrate in TH/s |
power_watts * | number | Power consumption in watts |
btc_price | number | BTC price (optional, uses current if not provided) |
days | number | Number of days to calculate (default: 30) |
pool_fee_pct | number | Pool fee percentage (default: 2) |
calculate_breakeven
Calculate breakeven BTC price for mining operation
| Parameter | Type | Description |
|---|---|---|
electricity_cost * | number | Electricity cost in $/kWh |
hashrate_th * | number | Hashrate in TH/s |
power_watts * | number | Power consumption in watts |
get_mempool
Get mempool status and fee estimates
get_recent_blocks
Get the most recent Bitcoin blocks (max 50, i.e. a few hours). For weekly block time, fees or hashprice use get_weekly_stats
| Parameter | Type | Description |
|---|---|---|
limit | number | Number of blocks to return (default: 10, max: 50) |
get_monthly_averages
Get calendar-month averages (UTC) of BTC price, network hashrate, and hashprice in USD and BTC, for monthly mining reports. The month must be complete.
| Parameter | Type | Description |
|---|---|---|
month * | string | Calendar month (YYYY-MM), e.g. 2026-09 for 1-30 September 2026 |
get_weekly_stats
Get closed ISO-week (Monday 00:00 UTC to Monday 00:00 UTC) Bitcoin network stats for weekly mining reports: block count and average block time, real transaction fees, implied hashrate, real hashprice in BTC and USD, difficulty adjustments with timestamps, BTC price, raw daily rows, methodology and coverage. Defaults to the last 2 closed weeks.
| Parameter | Type | Description |
|---|---|---|
week | string | Any day (YYYY-MM-DD) of the most recent week wanted. Default: last fully closed week |
weeks | number | Number of consecutive weeks ending with `week`, oldest first (default: 2, max: 8) |
get_asic_prices
Get ASIC miner price data and efficiency stats