<p>Problem solved after deleting the path to the file. <code>--mainnet</code> doesn't need any parameter to pass.</p>
<pre><code>cardano-wallet serve \
      --port 1919 \
      --node-socket /home/ubuntu/cardano-src/cardano-node/data/node.socket \
      --mainnet \
      --database /home/ubuntu/cardano-src/cardano-node/data \
</code></pre>

CC BY-SA 4.0
2022-06-10T10:01:06.983Z
2022-06-10T10:01:06.983Z
korimusk
<p>It does not seem you need a genesis file for the mainnet. Check here <a href="https://input-output-hk.github.io/cardano-wallet/user-guide/common-use-cases/how-to-start-wallet-server" rel="nofollow noreferrer">https://input-output-hk.github.io/cardano-wallet/user-guide/common-use-cases/how-to-start-wallet-server</a></p>

CC BY-SA 4.0
2022-06-10T09:21:22.707Z
I did download the file again from here: https://hydra.iohk.io/build/14528927/download/1/mainnet-byron-genesis.json but I still got the same error :/
korimusk
CC BY-SA 4.0
2022-06-10T09:14:51.017Z
2022-06-10T09:14:51.017Z
Marek Dajnowski
<p>I'm trying to run cardano wallet server but it keeps me giving an error and have no idea what's wrong with it.
This is the command I run:</p>
<pre><code>    cardano-wallet serve \
      --port 1919 \
      --node-socket /home/ubuntu/cardano-src/cardano-node/data/node.socket \
      --mainnet /home/ubuntu/cardano-src/cardano-node/mainnet-byron-genesis.json \
      --database /home/ubuntu/cardano-src/cardano-node/data \
</code></pre>
<p>This is the error:</p>
<pre><code>Invalid argument `/home/ubuntu/cardano-src/cardano-node/mainnet-byron-genesis.json'
</code></pre>
<p>Any help is appreciated, thank you all in advance!</p>

<cardano-cli><wallet><cardano-node>
Cardano Wallet Server Invalid Argument
# Cardano Wallet Server Invalid Argument

(Asked by: username_0 on 2022-06-10)

I'm trying to run cardano wallet server but it keeps me giving an error and have no idea what's wrong with it.
This is the command I run:
    cardano-wallet serve \
      --port 1919 \
      --node-socket /home/ubuntu/cardano-src/cardano-node/data/node.socket \
      --mainnet /home/ubuntu/cardano-src/cardano-node/mainnet-byron-genesis.json \
      --database /home/ubuntu/cardano-src/cardano-node/data \

This is the error:
Invalid argument `/home/ubuntu/cardano-src/cardano-node/mainnet-byron-genesis.json'

Any help is appreciated, thank you all in advance!

**Tags:** cardano-cli, wallet, cardano-node

---

## 2 answers

### Answer by username_0 on 2022-06-10. Score: 1 | Accepted answer

Problem solved after deleting the path to the file. --mainnet doesn't need any parameter to pass.
cardano-wallet serve \
      --port 1919 \
      --node-socket /home/ubuntu/cardano-src/cardano-node/data/node.socket \
      --mainnet \
      --database /home/ubuntu/cardano-src/cardano-node/data \


---

### Answer by username_1 on 2022-06-10. Score: 0

It does not seem you need a genesis file for the mainnet. Check here <https://input-output-hk.github.io/cardano-wallet/user-guide/common-use-cases/how-to-start-wallet-server>

> **Comments:**
> **username_0**: I did download the file again from here: https://hydra.iohk.io/build/14528927/download/1/mainnet-byron-genesis.json but I still got the same error :/  

---

