communication with remote/docker cardano-node
hussamBim opened this issue · 3 comments
Hi, I am using your package for minting, transfer. But i want to make connect of local cardano-cli with my remote cardano-node which is hosted on aws server or in some docker container.
Hi @hussamBim ,
This library by default uses the CARDANO_NODE_SOCKET_PATH
env var to connect with the local Cardano node, like the cardano-cli
tool. If you want to connect to a remote node you need to configure the httpProvider
. Check this.
Hi @miguelaeh
I have done that but getting errors of connection refused from server side.
I have my testnet node running on aws ec2 instance working fine on server. How i can connect that can you please guide about that?
Hi @hussamBim ,
I am sorry for the late response. I think it is not enough just with the Cardano node, you would need the Cardano api. Nevertheless,
You can check in the code there are calls like:
let response = fetch(
`${this.httpProvider}/queryStakeAddressInfo/${address}`
);
Now, I think it uses a deprecated API, so I would use it along with the node and use other libraries when submitting transactions remotely, like CSL and cardano-submit-api