<p>You might do as follows:</p>
<ul>
<li><p><strong>create-wallet.sh</strong> (create a new wallet)</p>
</li>
<li><p><strong>load-wallet.sh</strong> (load new wallet into wallet-backend)</p>
</li>
<li><p><strong>Take id</strong> value from <strong>load-wallet.sh</strong> result.</p>
</li>
<li><p>Set <strong>WALLETID=id</strong> in your <strong>env.sh</strong></p>
</li>
<li><p><code>. env.sh</code> (source env.sh)</p>
</li>
<li><p><strong>get_address.sh</strong>  (get the address of the new wallet)</p>
</li>
<li><p><strong>Use send.sh</strong> (week03) in order to transfer funds from your funded address to your new address.</p>
</li>
</ul>
<pre><code>cardano-cli transaction build \
    --alonzo-era \
    --testnet-magic 1097911063 \
    --change-address &lt;address_with_funds&gt; \
    --tx-in &lt;an_utxo_id_with_funds&gt; \
    --tx-out &quot;&lt;your_new_address&gt; &lt;ada_to_tranfer&gt; lovelace&quot; \
    --out-file tx.body

cardano-cli transaction sign \
    --tx-body-file tx.body \
    --signing-key-file &lt;skey_of_address_with_funds&gt; \
    --testnet-magic 1097911063 \
    --out-file tx.signed

cardano-cli transaction submit \
    --testnet-magic 1097911063 \
    --tx-file tx.signed
</code></pre>
<p>Hope this will be useful.</p>

CC BY-SA 4.0
2022-03-01T12:15:12.370Z
$ ./sendWallet.sh 
Estimated transaction fee: Lovelace 166953
Transaction successfully submitted.

That's great, it worked, balance is also updated.
Mihai Codescu
CC BY-SA 4.0
2022-03-01T11:23:21.927Z
2022-03-01T11:51:47.900Z
2022-03-01T11:51:47.900Z
kindofdev
<p>I've created a wallet with create-wallet.sh and loaded it with load-wallet.sh, and its balance is 0:</p>
<pre><code>&quot;balance&quot;:{&quot;total&quot;:{&quot;quantity&quot;:0,&quot;unit&quot;:&quot;lovelace&quot;},&quot;available&quot;:{&quot;quantity&quot;:0,&quot;unit&quot;:&quot;lovelace&quot;},&quot;reward&quot;:{&quot;quantity&quot;:0,&quot;unit&quot;:&quot;lovelace&quot;}}
</code></pre>
<p>Lars says in the video that we can connect this wallet to Daedalus or Yoroi and then use the Faucet to fund the wallet. Is there a way to fund the wallet directly, without Daedalus or Yoroi? I have already used Faucet at a previous step, the balance of the address I have used is 999.656267 ADA and I should be able to connect the wallet to these funds.</p>

<plutus-pioneer-program><wallet><week06>
funding a wallet
# funding a wallet

(Asked by: username_0 on 2022-03-01)

I've created a wallet with create-wallet.sh and loaded it with load-wallet.sh, and its balance is 0:
"balance":{"total":{"quantity":0,"unit":"lovelace"},"available":{"quantity":0,"unit":"lovelace"},"reward":{"quantity":0,"unit":"lovelace"}}

Lars says in the video that we can connect this wallet to Daedalus or Yoroi and then use the Faucet to fund the wallet. Is there a way to fund the wallet directly, without Daedalus or Yoroi? I have already used Faucet at a previous step, the balance of the address I have used is 999.656267 ADA and I should be able to connect the wallet to these funds.

**Tags:** plutus-pioneer-program, wallet, week06

---

## 1 answers

### Answer by username_1 on 2022-03-01. Score: 2 | Accepted answer

You might do as follows:

create-wallet.sh (create a new wallet)

load-wallet.sh (load new wallet into wallet-backend)

Take id value from load-wallet.sh result.

Set WALLETID=id in your env.sh

. env.sh (source env.sh)

get_address.sh  (get the address of the new wallet)

Use send.sh (week03) in order to transfer funds from your funded address to your new address.


cardano-cli transaction build \
    --alonzo-era \
    --testnet-magic 1097911063 \
    --change-address  \
    --tx-in  \
    --tx-out "  lovelace" \
    --out-file tx.body

cardano-cli transaction sign \
    --tx-body-file tx.body \
    --signing-key-file  \
    --testnet-magic 1097911063 \
    --out-file tx.signed

cardano-cli transaction submit \
    --testnet-magic 1097911063 \
    --tx-file tx.signed

Hope this will be useful.

> **Comments:**
> **username_0**: $ ./sendWallet.sh  Estimated transaction fee: Lovelace 166953 Transaction successfully submitted.  That's great, it worked, balance is also updated.  

---

