-
Notifications
You must be signed in to change notification settings - Fork 17
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.messageis error description anddatais a json object or array.
{
"code": 0,
"data": {}
"message": "OK"
}
-
For
GETandDELETErequests,the request parameter should be placed in the url. -
For
POSTandPUTrequests, the request parameter should be a json string, placed in the request body, with theContent-Type: application/jsonheader. -
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 theutcparameter 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