3

I have a Daedalus wallet running which is a full node so in theory, I should get all the CLI functionality from that one install, how do I access it?

2 Answers 2

4

Daedalus has its own cardano-node instance, so you can specify the node's socket variable and use it for cardano-cli purposes.

First, launch Daedalus, and click on Help > Daedalus Diagnostics. Under the "Core Info" section, the "Daedalus State Directory" specifies the filepath that Daedalus uses on your computer. There should be a socket variable (likely named cardano-node.socket) in this directory which you can point to in your bashrc file.

In your CLI, run: nano ~/.bashrc

Now, scroll down and add the following line to the bashrc file:

export CARDANO_NODE_SOCKET_PATH=<PATH_TO_SOCKET_IN_DAEDALUS_STATE_DIRECTORY>

Exit the bashrc file and run: source ~/.bashrc

Make sure cardano-cli is installed and is in your $PATH. You should now be able to run cardano-cli commands using Daedalus' cardano-node instance.

3
  • Is there a quick command to check if its using deadulus? I have both the repo and Deadlus installed and cant seem to figure out which one node its using (also I have verified all the steps were done exactly as you said and its a beautiful and succinct explanation thanks man).
    – KryptoKing
    Jun 20 at 5:00
  • Not sure if there is a "quick" command for this. cardano-cli will connect with whichever node's socket variable is specified in the bashrc file. You can probably use commands like ps aux or htop to query which processes are running, but if both are running simultaneously, I would just check the bashrc file with nano ~/.bashrc
    – zhekson
    Jun 20 at 13:43
  • thanks man i think i might turn this into a bash script
    – KryptoKing
    Jun 21 at 12:16
0

Go to the Deadalus menu, and you should see a menu item that says "Open a Marlowe terminal", and a terminal will open with Marlowe Cli installed.

1
  • is the marlowe terminal diffrent from the CLI or the same thing with a different name?
    – KryptoKing
    Jun 17 at 13:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.