Skip to content

Commit 9742e34

Browse files
committed
Update mining doc
1 parent 4c80f4b commit 9742e34

1 file changed

Lines changed: 19 additions & 10 deletions

File tree

doc/API.v0.md

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -368,12 +368,16 @@ GET http://cyphernode:8888/getmininginfo
368368
Proxy response:
369369
```json
370370
{
371-
"blocks": 697264,
372-
"difficulty": 15556093717702.55,
373-
"networkhashps": 1.657879694896906e+20,
374-
"pooledtx": 136,
375-
"chain": "main",
376-
"warnings": ""
371+
"result": {
372+
"blocks": 2191222,
373+
"difficulty": 1,
374+
"networkhashps": 118625307084442.9,
375+
"pooledtx": 0,
376+
"chain": "test",
377+
"warnings": ""
378+
},
379+
"error": null,
380+
"id": null
377381
}
378382
```
379383
### Get Bitcoin estimated hashrare per seconds. Optional block parameters. (called by your application)
@@ -385,15 +389,20 @@ POST http://cyphernode:8888/getnetworkhashps
385389
with body...
386390
{"height":-1, "nblocks":120}
387391
```
392+
height: default(-1) since last difficulty adjustent.
393+
394+
nblocks: default(120) number of block average.
395+
388396

389397
Proxy response:
390398

391399
```json
392400
{
393-
"height": -1,
394-
"nblocks": 120,
395-
"hashps": 127647856311107400000
396-
}```
401+
"result": 97145748652669.34,
402+
"error": null,
403+
"id": null
404+
}
405+
```
397406

398407
### Get mempool information
399408

0 commit comments

Comments
 (0)