Hello,
I have setup a multichain node on a remote server. I am trying to make API calls using the javascript API (https://github.com/scoin/multichain-node), but I get ECONNREFUSED and socket hang up errors.
I am testing the first commands provided in test.js :
let multichain = require("multichain-node")({
port: 6282,
host: '127.0.0.1',
user: "multichainrpc",
pass: "somepass"
});
multichain.getInfo((err, info) => {
if(err){
throw err;
}
console.log(info);
})
with the connexion parameters of my remote server, as follow
Port : default-rpc
Host : ip address of remote server
And the username/password provided in the multichain.conf file of my chain.
What have I missed ?
Thanks ! :)