stats - 获取统计数据
使用stats
调用获取统计数据。
API调用
GET stats
API返回值
返回数据为统计信息对象,主要字段如下:
- timestamp:时间戳
- market_price_usd:以美元结算的比特币市场价格
- hash_rate:哈希速率
- total_fees_btc:比特币手续费总额
- n_btc_mniced:挖出比特币总额
- n_tx:比特币交易总数
- n_blocks_mined:挖出区块总数
- estimated_transaction_volume_usd:以美元为单位的交易量估算值
- blocks_size:区块大小
- miners_revenue_usd:美元为单位的矿工收益总额
- nextretarget:下次调整难度目标的区块高度
- difficulty:当前难度目标
- estimated_btc_sent:发送比特币估算量
- miners_revenue_btc:矿工收益比特币总量
- total_btc_sent:发送比特币总量
- trade_volume_btc:比特币交易量
- trade_volume_usd:以美元为单位的比特币交易量
示例代码
使用curl调用stats
的示例代码如下:
curl https://api.blockchain.info/stats
返回值:
{
"timestamp": 1557646525000,
"market_price_usd": 7292.97,
"hash_rate": 44977500727.36728,
"total_fees_btc": 11648437530,
"n_btc_mined": 168750000000,
"n_tx": 335667,
"n_blocks_mined": 135,
"minutes_between_blocks": 9.8507,
"totalbc": 1769555000000000,
"n_blocks_total": 575644,
"estimated_transaction_volume_usd": 985067994.1395454,
"blocks_size": 164076254,
"miners_revenue_usd": 13156403.929531645,
"nextretarget": 576575,
"difficulty": 6702169884349,
"estimated_btc_sent": 13507089623837,
"miners_revenue_btc": 1803,
"total_btc_sent": 112633530925902,
"trade_volume_btc": 52607.99,
"trade_volume_usd": 383668492.8303
}