<p>Anytime you do things on testnet, you need to replace the <code>--mainnet</code> flag in your CLI commands with the <code>--testnet-magic 1097911063</code> flag. The address you built above is a mainnet address, which is incompatible with testnet.</p>

CC BY-SA 4.0
2022-02-11T15:18:55.487Z
Can You give an example script I am seeing this error on my terminal `Invalid option `--testnet'`
arunwebber
CC BY-SA 4.0
2022-02-11T15:35:29.197Z
sorry, forgot to include the "magic" option. Edit was applied above ^
zhekson
CC BY-SA 4.0
2022-02-11T15:10:41.917Z
2022-02-11T15:34:57.180Z
2022-02-11T15:34:57.180Z
zhekson
<p>Now I am experimenting to mint a token on cardano testnet I have installed the followings like deadalus wallet for testnet and cli tools as well.Then I recived ada from the testnet to the testnet deadalus wallet  Then I have followed thease Instructions over here.</p>
<pre><code>cardano-cli address key-gen \
--verification-key-file payment.vkey \
--signing-key-file payment.skey

cardano-cli address build \
--payment-verification-key-file payment.vkey \
--out-file payment.addr \
--mainnet

cat payment.addr
</code></pre>
<p>From the last command which i have executed given me an ada address when I am pasting that address on deadalus wallet it is showing me the address is invalid. I couldnt find much about this from official documentation as well. What should i do now? Where am i going wrong?</p>

<testnet><token><cardano-faucet>
How to mint a token on testnet?
# How to mint a token on testnet?

(Asked by: username_0 on 2022-02-11)

Now I am experimenting to mint a token on cardano testnet I have installed the followings like deadalus wallet for testnet and cli tools as well.Then I recived ada from the testnet to the testnet deadalus wallet  Then I have followed thease Instructions over here.
cardano-cli address key-gen \
--verification-key-file payment.vkey \
--signing-key-file payment.skey

cardano-cli address build \
--payment-verification-key-file payment.vkey \
--out-file payment.addr \
--mainnet

cat payment.addr

From the last command which i have executed given me an ada address when I am pasting that address on deadalus wallet it is showing me the address is invalid. I couldnt find much about this from official documentation as well. What should i do now? Where am i going wrong?

**Tags:** testnet, token, cardano-faucet

---

## 1 answers

### Answer by username_1 on 2022-02-11. Score: 0 | Accepted answer

Anytime you do things on testnet, you need to replace the `--mainnet` flag in your CLI commands with the `--testnet-magic 1097911063` flag. The address you built above is a mainnet address, which is incompatible with testnet.

> **Comments:**
> **username_0**: Can You give an example script I am seeing this error on my terminal `Invalid option `--testnet'`  
> **username_1**: sorry, forgot to include the "magic" option. Edit was applied above ^  

---

