Connecting RPC client

+1 vote
I am getting refused. mulitchain-cli works, i explicitly set -rpcuser=username -rpcpass=password and I need to use those for multichain-cli. Do I need to allow local connections ?

Should I be able to make a POST to

http://localhost:8332/sendWithMetaData
asked Jun 9, 2016 by anonymous

1 Answer

0 votes
The API requests use the JSON-RPC protocol rather than POSTing to a specific URL for each API method. Can I recommend taking a look at one of the libraries that has been created for using the MultiChain API? Hopefully you can find one in a suitable programming language from the list at the bottom of this page:

http://www.multichain.com/developers/
answered Jun 9, 2016 by MultiChain
I've tried about 3, had the same error and was slowly dismantling.
The first line of the output of multichain-cli shows you the payload that it's sending in the POST request to the API. Does that help?
yeah, its something really dump I know, i just wondered if there was some rpcaccess ot something I needed to set. but the client works fine and I guess thats all that is doing, so it cant be my location.
Yes, by default localhost access is enabled, so it's just a matter of formatting the requests correctly.
had a sleep which usually helps. so it wasnt using 8332 as telnetting revealed. so I set rpcport explicitly on the mulitchaind startup and i am good, so I must have set that somewhere.
anyway, I am good.
...