-
Notifications
You must be signed in to change notification settings - Fork 14
api_description
luogang edited this page Nov 30, 2021
·
4 revisions
-
API Endpoint: https://www.viabtc.net
-
API return the following json object, success when
code=0
.message
is error description anddata
is a json object or array.
{
"code": 0,
"data": {}
"message": "OK"
}
-
For
GET
andDELETE
requests,the request parameter should be placed in the url. -
For
POST
andPUT
requests, the request parameter should be a json string, placed in the request body, with theContent-Type: application/json
header. -
By default, the daily data returned by API is in Beijing time (UTC+8). If you want to acquire the daily data in UTC time, pass the parameter
utc=true
. API that support theutc
parameter will list it in their request parameter list.
name | type | required | description |
---|---|---|---|
utc | string | no | true/false, default: false |
HTTP API Introduction
Account API
Hahrate API
- Acquire Account Hashrate
- Acquire Account Hashrate History
- Acquire Account Hashrate Chart
- Acquire Miner Hahrate
- Acquire Miner Hahrate Info
- Acquire Miner Hashrate History
- Acquire Miner Group Hashrate
- Acquire Miner Group Hashrate Info
Wallet API