Sub-account Summary Interface
Description
Sub-account summary interface is used to obtain the data for 24 hours earnings, account balance, total earnings, 10 minutes hashrate, 30 minutes hashrate, 1 hour hashrate and 1 day hashrate.
URL
/operator/api/subAccountSummary.htm
Parameter
Parameter | Type | Description |
---|---|---|
opId | String | Operator ID |
coin | String | Coin type (BTC、LTC、ZEC……) |
params | String | Check the table below |
sign | String | Signature,check "Interface Authorization" description for details. |
record description:
Name | Type | Description |
---|---|---|
userId | String | User ID |
key | String | API key |
nonce | Long | Incremental random number |
permissions | Array | Select user information module which need to be queried , include:poolStats, account, hashrate, payout, pps |
- Return Value
{ "code": "000000", "data": { "poolStats": { "poolHashrate":"0", //矿池算力(单位为:MH/s) "activeWorkerNumber":"0",//矿池有效矿工数 "poolStatus":"Alive", //矿池状态 "networkDiff":"0",//当前网络难度 "estimateTime":"0",//Block期望时间(单位:秒) "currentRound":"0", //当前运行时间(单位:秒) "totalShareNumber":"0",//总工作量 "totalBlockNumber":"0", //总Block数 }, "account": { "earn24Hours":"0.00000000", "earnTotal":"0.00000000", "paidOut":"0.00000000", "balance":"0.00000000", "userActiveWorkerNumber":"0",//用户有效矿工数 "userInactiveWorkerNumber":"0", //用户无效矿工数 "paymentMethod":"1", //0:pplns,1:pps,2:solo "walletAddr": "1LiDgEcjNqgz7oJQ2qc5AHywcck6MTe3RP", "walletAddrLock": "0",// 0:未锁定, 1:已锁定 "remark":"" //备注 }, "hashrate": { "last10m":"0", "last30m":"0", "last1h":"0", "last1d":"0", "prev10m":"0", "prev30m":"0", "prev1h":"0", "prev1d":"0", "accepted":"0", "stale":"0", "dupelicate":"0", "other":"0" }, "payout": [ { "timestamp":"2015-01-01 00:00:00", "walletAddress":"1Mp3atombUR6iLLYoLEdN9uPfPscsKBXfi", "txId":"191138d1aa04f8c898139d69fc821a5e0b92b4ecb3225629012fcc1a7558736d", "amount":"0.01" } ], "pps": [ { "timestamp":"2015-01-01 00:00:00", "networkDiff":"35985640265", "diff1ShareCount":"1000", "fee":"0.01", "amount":"0.01" } ] }, "message": "ok" }