Hello! I’m doing tests with cardano-cli, using the daedalus node on local host, everything works fine. My question is how can I configure my queries to point to an external public node instead of my localhost?
Closest would be this:
But you’d need control of the remote server. So, it’s not for accessing public nodes by other people.
Thank you very much for your answer. The post you directed me to answers my question. I have the following question. Does socket forwarding have to be done every time a query is made or is it as if it were an open session in a terminal?
The socket is forwarded as long as the
ssh connection stays open. So, no, does not have to be done for every query, but can be done for a whole session (or even automatically via a systemd unit or something like that).
Perfect! One last question, the socket that would have to be forwarded would be $CARDANO_NODE_SOCKET_PATH, right?
The one before the
: is the one on the local machine that you set
$CARDANO_NODE_SOCKET_PATH to on the local machine to get
cardano-cli going. The one after the
: is the socket that is opened by
cardano-node on the remote machine that you have set
$CARDANO_NODE_SOCKET_PATH to previously to get
cardano-cli running on that machine.
Thank you very much for your time and explanation. Really very clear.