401 Unauthorized.

+1 vote
Thanks for your answer. I found the default rpc port and where able to send a request. However, it says 401 Unauthorized. What kind of authorization is needed? I cant find anyhting on that do I have to pass a apikey or something like that?
asked May 22, 2019 by anonymous

1 Answer

+1 vote

You need basic authentication. You pass it on the header. (assuming you are using curl or something like Restlet)

I uploaded a gist here so you can see it. It is written in Java. 

https://gist.github.com/kgiannis/97b57b956eeeab9af067b2df74900c3d

It is a simple RPC client so you can test your multichain. 

As you can see you have to pass a MultichainApiCommand object.

 

answered May 22, 2019 by kgiannis
...