user5565: 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.

user6113: 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 <address_with_funds> \
    --tx-in <an_utxo_id_with_funds> \
    --tx-out "<your_new_address> <ada_to_tranfer> lovelace" \
    --out-file tx.body

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

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

Hope this will be useful.

5565: <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>
 6113: <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>
