Post
Topic
Board Mining (Altcoins)
Re: [ANN] dstm's ZCash / Equihash Nvidia Miner v0.5.8 (Linux / Windows)
by
marco.ruiz
on 08/01/2018, 18:44:21 UTC
How exactly can I use the json-rpc?

I've enabled the telemetry. If i load IP:port in browser i see the page.

So for json-rpc i tried different options with postman and failed on all. Is there something that i'm missing?
https://i.imgur.com/qgF7EVj.png

I tried writing a scraper for Prometheus using the json-rpc API yesterday, in both Python and then in Java using standard http client libs and found with both that the API does NOT produce a consumable output.  In Java, posting with the specified request ( {"id":1, "method":"getstat"} the post to the API port throws an http.ProtocolException "The server failed to respond with a valid HTTP response".

I'd like to use this more elegant json output from a POST rather than scraping through the html on a GET.



This has been discussed before, here's dstm reply:
https://bitcointalk.org/index.php?topic=2021765.msg26342817#msg26342817