按币种的端点
SoloFury 在 5 种 SHA-256 币种上提供完全相同的 API。base path 因币种而异——出于历史原因 BCH 使用 /api;其他币种使用 /api-{coin}。
| 币种 | Base path | Stratum 端口 |
|---|---|---|
| BTC | /api-btc | 6060, 6061, 6062 |
| BCH | /api | 7070, 7071, 7072 |
| BC2 | /api-bc2 | 8080, 8081, 8082 |
| BCH2 | /api-bch2 | 8585, 8586, 8587 |
| XEC | /api-xec | 9090, 9091, 9092 |
Pool 统计
/api/pool 整个 pool 的统计:总 hashrate(1m/1h/1d/7d 滚动)、已连接 miners、已找到区块、当前区块高度、网络 difficulty/hashrate、fee。
{
"totalHashRate": 2780000000000000, // H/s · current
"totalHashRate1m": 2810000000000000,
"totalHashRate1hr": 2750000000000000,
"totalHashRate1d": 2640000000000000,
"totalHashRate7d": 2420000000000000,
"blockHeight": 948592,
"networkDifficulty": 763004012345.6,
"networkHashRate": 5060000000000000000,
"totalMiners": 10,
"blocksFound": […], // array of past block events
"fee": 1 // percent
} Pool 信息
/api/info Pool 运行信息:迄今最佳 share,已接受/已拒绝/stale/无效 shares,效率,运行时长,stratum 端口,pool 标识。
{
"poolIdentifier": "BCH-Solo",
"fee": 1,
"stratumPort": 7070,
"uptime": 8643215, // seconds
"accepted": 142357821,
"rejected": 12483,
"stale": 8421,
"invalid": 3,
"efficiency": "99.99",
"highScores": [{ "bestDifficulty": 2613000000000, "bestDifficultyUserAgent": "Antminer" }]
} Pool 图表
/api/info/chart Pool hashrate、已接受/已拒绝/stale/无效计数、网络 difficulty 的时间序列。用于仪表盘图表。默认 24h,最长约 7 天。
| Query | 类型 | 默认 | 说明 |
|---|---|---|---|
hours | integer | 24 | 时间窗大小(小时,5 分钟粒度) |
[
{
"label": "01:25",
"data": 2540000000000000, // hashrate · H/s
"difficulty": 763004012345.6,
"accepted": 142357821,
"rejected": 12483,
"stale": 8421,
"invalid": 3
},
… // 288 points for 24h window
] 网络信息
/api/network 直接从底层节点获取的实时区块链网络数据——区块高度、difficulty、hashrate、mempool 大小、chain 标识。
{
"blocks": 948592,
"difficulty": 763004012345.6,
"networkhashps": 5060000000000000000, // H/s
"currentblockweight": 3998000,
"currentblocktx": 2841,
"pooledtx": 3142,
"chain": "main",
"warnings": ""
} 网络历史
/api/network/history 网络 difficulty 与 hashrate 的时间序列。默认 24h,最长 168h(7 天)。
| Query | 类型 | 默认 | 说明 |
|---|---|---|---|
hours | integer | 168 | 时间窗大小(小时,最大 168) |
Client / Miner 信息
/api/client/{wallet_address} 按地址的 miner 数据:已连接 workers、每个 worker 的 hashrate、shares 计数、达到的最佳 difficulty、最后在线时间戳。
| Path | 类型 | 说明 |
|---|---|---|
address | string | Miner 钱包地址(BTC/BCH/BC2/BCH2/XEC 原生格式) |
{
"bestDifficulty": 2613000000000,
"sessionId": "a1b2c3d4...",
"workers": [
{
"name": "S21Plus01",
"hashRate": 276000000000000, // H/s
"bestDifficulty": 59870000000,
"sessionId": "abc...",
"lastSeen": "2026-05-08T00:42:00.000Z",
"startTime": "2026-04-28T13:55:00.000Z"
},
…
]
} Client 图表
/api/client/{wallet_address}/chart 单个 miner 的时间序列:hashrate,已接受/已拒绝/stale/无效 shares,difficulty。结构与 /api/info/chart 相同,但仅限单个地址。
| Path / Query | 类型 | 默认 | 说明 |
|---|---|---|---|
address | string | — | Miner 钱包地址 |
hours | integer | 24 | 时间窗大小(小时) |
每个 miner 的历史记录从该地址首次连接时开始记录,因此较长的时间窗会随着数据的积累逐步填充。
Stratum 连接
通过 Stratum V1 将你的 ASIC 连接到 SoloFury。全球 9 个区域,实现低延迟的全球路由。
// Host = [region]-[coin].solofury.com (Atlanta has no region prefix)
// Regions: (none)=Atlanta · eu-=Frankfurt · jp-=Tokyo · asia-=Singapore
// lat-=Sao Paulo · pnw-=Seattle · me-=Tel Aviv · afr-=Johannesburg · uk-=London
// Coins: bch · btc · bc2 · bch2 · xec
// Ports: BTC 6060-6062 · BCH 7070-7072 · BC2 8080-8082 · BCH2 8585-8587 · XEC 9090-9092
// Examples (3 ports per coin = failover)
stratum+tcp://btc.solofury.com:6060 // BTC · Atlanta
stratum+tcp://eu-bch.solofury.com:7070 // BCH · Frankfurt
stratum+tcp://jp-xec.solofury.com:9090 // XEC · Tokyo
stratum+tcp://asia-btc.solofury.com:6060 // BTC · Singapore
stratum+tcp://uk-bc2.solofury.com:8080 // BC2 · London
// Worker format
Username: YOUR_WALLET_ADDRESS.WORKER_NAME
Password: x Rate 限制与说明
示例
# All 5 coin pools
curl -s https://solofury.com/api-btc/pool | jq .
curl -s https://solofury.com/api/pool | jq . # BCH (no suffix)
curl -s https://solofury.com/api-bc2/pool | jq .
curl -s https://solofury.com/api-bch2/pool | jq .
curl -s https://solofury.com/api-xec/pool | jq .
# Network info
curl -s https://solofury.com/api/network
# Per-miner stats
curl -s https://solofury.com/api/client/YOUR_WALLET_ADDRESS
# Time-series chart (24h, 5-min granularity)
curl -s "https://solofury.com/api/info/chart?hours=24"// Browser or Node.js (with fetch polyfill)
const coins = ['-btc', '', '-bc2', '-bch2', '-xec'];
const stats = await Promise.all(
coins.map(c => fetch(`https://solofury.com/api${c}/pool`).then(r => r.json()))
);
for (const [i, p] of stats.entries()) {
const coin = ['BTC', 'BCH', 'BC2', 'BCH2', 'XEC'][i];
console.log(`${coin}: ${(p.totalHashRate/1e12).toFixed(1)} TH/s · ${p.totalMiners} miners · ${p.fee}% fee`);
}import requests
def pool_stats(coin=''):
suffix = '' if coin == 'bch' else f'-{coin}'
r = requests.get(f'https://solofury.com/api{suffix}/pool', timeout=5)
return r.json()
for coin in ['btc', 'bch', 'bc2', 'bch2', 'xec']:
s = pool_stats(coin)
th = s['totalHashRate'] / 1e12
print(f'{coin.upper():<5} {th:.1f} TH/s · {s["totalMiners"]} miners · fee {s["fee"]}%')集成
SoloFury 的 API 遵循行业惯例,兼容标准的挖矿工具。