You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We do not use JSON encoding in this endpoint for performance reasons to support use of this endpoint by pool share validation. If the input `:headerhex` cannot be parsed, the result is an empty string.
506
-
!!!
507
558
508
559
### `GET /tools/wallet/new`
509
560
@@ -542,6 +593,38 @@ Example output of `/tools/wallet/from_privkey/d3ce2210adf0fccabe31b61309e2b80c02
542
593
}
543
594
```
544
595
596
+
### `GET /tools/janushash_number/:headerhex`
597
+
Show number interpretation of a header's Janushash. Mining corresponds to finding headers with this number smaller than some threshold dictated by the header difficulty.
598
+
599
+
Example output of `/tools/janushash_number/b4e91160d990b7b679234fc7cdc1aefbe11afe9823d6d8d1da7067e9ab0c8d380af405022613b56b379d0b071a4829cc27875f19bb0cb493f3f15aaedade1080e433874b0000000265ce0eb452f36e59`:
600
+
601
+
```json
602
+
{
603
+
"code": 0,
604
+
"data": {
605
+
"janushashNumber": 4.315032866502006e-14
606
+
}
607
+
}
608
+
```
609
+
### `GET /tools/sample_verified_peers/:number`
610
+
List verified peers.
611
+
612
+
Example output of `/tools/wallet/from_privkey/d3ce2210adf0fccabe31b61309e2b80c029a7e4e305aeed29432edd428d35c3d`:
613
+
614
+
```json
615
+
{
616
+
"code": 0,
617
+
"data": [
618
+
"51.75.21.134:9186",
619
+
"172.241.31.200:19110",
620
+
"51.68.155.69:9186",
621
+
"148.251.181.254:19110",
622
+
"149.102.187.227:9186"
623
+
]
624
+
}
625
+
```
626
+
627
+
545
628
### `WEBSOCKET /stream`
546
629
This websocket endpoint allows real-time data streams on several topics such as `chain`, `account` and `connection` related information. Subscribe with a message containing `"action": "subscribe"` and unsubscribe similarly with `"action": "unsubscribe"`, as shown below.
0 commit comments