<p>You definitely need to have a local running cardano-node so the cardano-wallet server has something to talk to/query. Once you have that set up, the easiest thing is to download the latest pre-compiled cardano-wallet binaries from <a href="https://github.com/input-output-hk/cardano-wallet" rel="nofollow noreferrer">IOHK's github</a>.</p>
<p>Extract the cardano-wallet binaries and place them in your <code>bin</code> folder. You should be able to run <code>cardano-wallet -h</code> from the CLI and get a help prompt. Once that works, make sure CARDANO_NODE_SOCKET_PATH environment variable is set appropriately in your <code>~/.bashrc</code> folder. As long as cardano-node is up and running, you may now begin using cardano-wallet.</p>
<p>Follow the <a href="https://input-output-hk.github.io/cardano-wallet/user-guide/cli" rel="nofollow noreferrer">cardano-wallet user guide</a> to begin. For a minimal setup, you can get started by running:</p>
<pre><code>cardano-wallet serve \
  --mainnet \
  --node-socket CARDANO_NODE_SOCKET_PATH \
  --database &lt;PATH_TO_WALLET_DB&gt;
</code></pre>
<p>Hope this helps and let me know if you need further clarification!</p>

CC BY-SA 4.0
2021-12-27T19:30:23.757Z
But how do I get the http part working? I've asked on another question as well. https://cardano.stackexchange.com/questions/6058/how-do-i-get-the-http-endpoint-to-work-for-cardano-wallet
Jeffrey Berthiaume
CC BY-SA 4.0
2021-12-23T22:44:32.237Z
2021-12-23T22:44:32.237Z
zhekson
<p>To build cardano-wallet from sources you need first to have cardano-node, as stated here:</p>
<p><a href="https://developers.cardano.org/docs/get-started/installing-cardano-wallet/" rel="nofollow noreferrer">https://developers.cardano.org/docs/get-started/installing-cardano-wallet/</a></p>
<p><code>This guide assumes you have installed cardano-node and cardano-cli into your system. If not you can refer to Installing cardano-node guide for instructions on how to do that.</code></p>
<p>You should have at least 8GB RAM, what is necessary for running cardano node, from first look seems your build fails because of insufficient resources.</p>
<p>I have build by myself cardano-node with cardano-wallet exactly on Digital Ocean(Even on same OS - Ubuntu) using following documentation what I updated quite recently, so it does work:</p>
<p><a href="https://developers.cardano.org/docs/get-started/installing-cardano-node/" rel="nofollow noreferrer">https://developers.cardano.org/docs/get-started/installing-cardano-node/</a></p>
<p><a href="https://developers.cardano.org/docs/get-started/installing-cardano-wallet/" rel="nofollow noreferrer">https://developers.cardano.org/docs/get-started/installing-cardano-wallet/</a></p>
<p>If you still have a problem building cardano-node or wallet. Please put logs and I will try to sort it out.</p>
<p>For wallet you just need to have cardano-node binaries that it. You can use prebuild or build by yourself.</p>
<p>P.S.</p>
<p>And this do work:</p>
<pre><code>wget https://raw.githubusercontent.com/input-output-hk/cardano-wallet/master/docker-compose.yml
NETWORK=testnet docker-compose up
</code></pre>
<p>Seems you just don't have docker and docker-compose installed. So if you see that command docker-compose is not found then on Ubuntu/debian you need to run <code>apt-get update &amp;&amp; apt-get upgrade -y &amp;&amp; apt-get install docker-compose -y</code> and then it will work</p>

CC BY-SA 4.0
2021-12-23T23:24:01.830Z
I am reinstalling on a fresh droplet, following the installing-cardano-node instructions. I will post abbreviated logs if there are any problems. Thank you!
Jeffrey Berthiaume
CC BY-SA 4.0
2021-12-27T19:33:38.583Z
I was able to do it on an 8 GB instance, but I did have to log out and create a new session (and re-run the build both times).
Jeffrey Berthiaume
CC BY-SA 4.0
2021-12-27T20:46:48.747Z
Glad that you were able to build it. Cheers!
os11k
CC BY-SA 4.0
2021-12-23T22:32:03.227Z
2021-12-23T22:56:35.863Z
2021-12-23T22:56:35.863Z
os11k
<p>Here's an example:</p>
<p><a href="https://github.com/input-output-hk/cardano-wallet" rel="nofollow noreferrer">https://github.com/input-output-hk/cardano-wallet</a></p>
<pre><code>wget https://raw.githubusercontent.com/input-output-hk/cardano-wallet/master/docker-compose.yml
NETWORK=testnet docker-compose up

Fantastic! The server is up-and-running, waiting for HTTP requests on localhost:8090/v2
</code></pre>
<p>No, it isn't. All that the above does is download a yml file.</p>
<p>I've also tried setting up a brand-new Ubuntu server on Digital Ocean, following the steps outlined here:</p>
<p><a href="https://developers.cardano.org/docs/get-started/installing-cardano-wallet/" rel="nofollow noreferrer">https://developers.cardano.org/docs/get-started/installing-cardano-wallet/</a></p>
<p>I've made sure to use the same git branches and tags that were listed, but running:</p>
<pre><code>stack build --test --no-run-tests
</code></pre>
<p>takes a long time and then fails. I did figure out that <code>sudo apt install libsodium-dev</code> had been overlooked in the documentation, but I'm still stuck and haven't been able to find any solutions.</p>
<ul>
<li>EDIT: I went through the whole process again, without installing libsodium-dev and it worked, so I'm not sure why that was the case for me before.</li>
</ul>
<p>I've destroyed the server and set up a new one from scratch each time, worrying that there might be something I've done that could affect each tutorial. I've probably downloaded and installed and tried compiling (with cabal and stack) eight times.</p>
<p>So. What I'm trying to do is set up on a brand new droplet, cardano-wallet with the REST API, so I can make requests and get responses. Do I need to install cardano-node first? Do I need to set up a relay vs a node like a stake pool? (I have a stake pool set up, but I had to hire someone to do that because I wanted to make sure all the security patches were set up correctly, and that I didn't do something bone-headed)</p>

<wallet><cardano-node>
How do you install cardano-wallet on an Ubuntu server and get the http API set up and running?
# How do you install cardano-wallet on an Ubuntu server and get the http API set up and running?

(Asked by: username_0 on 2021-12-23)

Here's an example:
https://github.com/input-output-hk/cardano-wallet
wget https://raw.githubusercontent.com/input-output-hk/cardano-wallet/master/docker-compose.yml
NETWORK=testnet docker-compose up

Fantastic! The server is up-and-running, waiting for HTTP requests on localhost:8090/v2

No, it isn't. All that the above does is download a yml file.
I've also tried setting up a brand-new Ubuntu server on Digital Ocean, following the steps outlined here:
https://developers.cardano.org/docs/get-started/installing-cardano-wallet/
I've made sure to use the same git branches and tags that were listed, but running:
stack build --test --no-run-tests

takes a long time and then fails. I did figure out that sudo apt install libsodium-dev had been overlooked in the documentation, but I'm still stuck and haven't been able to find any solutions.

EDIT: I went through the whole process again, without installing libsodium-dev and it worked, so I'm not sure why that was the case for me before.

I've destroyed the server and set up a new one from scratch each time, worrying that there might be something I've done that could affect each tutorial. I've probably downloaded and installed and tried compiling (with cabal and stack) eight times.
So. What I'm trying to do is set up on a brand new droplet, cardano-wallet with the REST API, so I can make requests and get responses. Do I need to install cardano-node first? Do I need to set up a relay vs a node like a stake pool? (I have a stake pool set up, but I had to hire someone to do that because I wanted to make sure all the security patches were set up correctly, and that I didn't do something bone-headed)

**Tags:** wallet, cardano-node

---

## 2 answers

### Answer by username_1 on 2021-12-23. Score: 2 | Accepted answer

You definitely need to have a local running cardano-node so the cardano-wallet server has something to talk to/query. Once you have that set up, the easiest thing is to download the latest pre-compiled cardano-wallet binaries from IOHK's github.
Extract the cardano-wallet binaries and place them in your bin folder. You should be able to run cardano-wallet -h from the CLI and get a help prompt. Once that works, make sure CARDANO_NODE_SOCKET_PATH environment variable is set appropriately in your ~/.bashrc folder. As long as cardano-node is up and running, you may now begin using cardano-wallet.
Follow the cardano-wallet user guide to begin. For a minimal setup, you can get started by running:
cardano-wallet serve \
  --mainnet \
  --node-socket CARDANO_NODE_SOCKET_PATH \
  --database 

Hope this helps and let me know if you need further clarification!

> **Comments:**
> **username_0**: But how do I get the http part working? I've asked on another question as well. https://cardano.stackexchange.com/questions/6058/how-do-i-get-the-http-endpoint-to-work-for-cardano-wallet  

---

### Answer by username_2 on 2021-12-23. Score: 1

To build cardano-wallet from sources you need first to have cardano-node, as stated here:
https://developers.cardano.org/docs/get-started/installing-cardano-wallet/
This guide assumes you have installed cardano-node and cardano-cli into your system. If not you can refer to Installing cardano-node guide for instructions on how to do that.
You should have at least 8GB RAM, what is necessary for running cardano node, from first look seems your build fails because of insufficient resources.
I have build by myself cardano-node with cardano-wallet exactly on Digital Ocean(Even on same OS - Ubuntu) using following documentation what I updated quite recently, so it does work:
https://developers.cardano.org/docs/get-started/installing-cardano-node/
https://developers.cardano.org/docs/get-started/installing-cardano-wallet/
If you still have a problem building cardano-node or wallet. Please put logs and I will try to sort it out.
For wallet you just need to have cardano-node binaries that it. You can use prebuild or build by yourself.
P.S.
And this do work:
wget https://raw.githubusercontent.com/input-output-hk/cardano-wallet/master/docker-compose.yml
NETWORK=testnet docker-compose up

Seems you just don't have docker and docker-compose installed. So if you see that command docker-compose is not found then on Ubuntu/debian you need to run apt-get update && apt-get upgrade -y && apt-get install docker-compose -y and then it will work

> **Comments:**
> **username_0**: I am reinstalling on a fresh droplet, following the installing-cardano-node instructions. I will post abbreviated logs if there are any problems. Thank you!  
> **username_0**: I was able to do it on an 8 GB instance, but I did have to log out and create a new session (and re-run the build both times).  
> **username_2**: Glad that you were able to build it. Cheers!  

---

