GET
https://api.xmrig.com/1/network/:coin
Get network object for specified coin.
GET
https://api.xmrig.com/1/networks
Get an array of network objects for all supported by API coins.
Object with short network summary.
{
"coin": "XMR",
"hash": "0194ca54327f2e997d8286f9355e5a892121d1028dce7a10ace095db73705b53",
"major_version": 12,
"difficulty": 156507748988,
"target": 120,
"height": 2175193,
"reward": 1460595207335,
"units": 1000000000000,
"ts": 1598723700495,
"algo": "rx/0"
}
Field | Type | Description |
---|---|---|
coin | Coin | Coin code. |
hash | String | Hash of last network block. |
major_version | Number | Major version of last network block. |
difficulty | Number | Current network difficulty. |
target | Number | Block time target in seconds, use difficulty / target to get network hashrate. |
height | Number | Current network height. |
reward | Number | Reward of last network block in atomic units. |
units | Number | Use reward / units to get human readable reward value. |
ts | Timestamp | Time when last block actually mined (discovered by API). |
algo | Algorithm | Current network PoW algorithm. |