Real-time Bitcoin and Bitcoin Cash statistics for ESP32 mining devices. Fast, reliable, and optimized for embedded systems.
{
"result": {
"data": {
"json": {
"btc_price_usd": 65084,
"bch_price_usd": 540.61,
"block_height": 875432,
"network_hashrate": "1019.36 EH/s",
"network_difficulty": "144.40 T",
"fee_low": 5,
"fee_medium": 10,
"fee_high": 20,
"difficulty_progress": 45.2,
"difficulty_change": 2.5,
"difficulty_retarget_blocks": 1024,
"timestamp": 1771824295892,
"cache_age": 120
}
}
}
}HTTPClient http;
http.begin("http://api.bonniecreative.com/api/trpc/stats.getAll");
int httpCode = http.GET();
if (httpCode == HTTP_CODE_OK) {
String payload = http.getString();
// Parse JSON and extract data
}
http.end();btc_price_usd - Bitcoin price in USDbch_price_usd - Bitcoin Cash price in USDblock_height - Current block heightnetwork_hashrate - Network hashrate (formatted)network_difficulty - Mining difficulty (formatted)fee_low - Economy fee (sat/vB)fee_medium - Standard fee (sat/vB)fee_high - Priority fee (sat/vB)difficulty_progress - Progress percentagedifficulty_change - Expected change %difficulty_retarget_blocks - Blocks remaining