user6268: I am trying to build a transaction with a wallet that has 6 ADA. The transaction fee is 165721 lovelaces. So 6000000 - 165721 = 5827019 lovelaces. But when i try to send 5827019 lovelaces I get an error saying I can't build the transaction because the Minimum UTxO threshold: Lovelace 999978. Is it possible to send all my ADA or do I have have to leave a balance of at least 1 ADA?
Here is my build command
cardano-cli transaction build --alonzo-era --testnet-magic 1097911063 --change-address <change_addr> --tx-in <tx_in> --tx-out <recpt_addr>+5827019 --out-file <build_file>

user1142: The problem is that your fee is probably not exactly 165721.

You have 6000000 lovelace
You want to send 5827019 lovelace to recpt_addr
The fee is something like 165721 but not exactly (probably less)
Some lovelace are left and the command tries to send them to change_addr

You can inspect the transaction using cardano-cli transaction view --tx-body-file <build_file> to see the problem, then you can adjust your command params accordingly.
Maybe it would also work if you simply set the change address to the same address as the recipient:

--change-address <recpt_addr>


6268: <p>I am trying to build a transaction with a wallet that has 6 ADA. The transaction fee is 165721 lovelaces. So <code>6000000 - 165721 = 5827019</code> lovelaces. But when i try to send 5827019 lovelaces I get an error saying I can't build the transaction because the Minimum UTxO threshold: Lovelace 999978. Is it possible to send all my ADA or do I have have to leave a balance of at least 1 ADA?</p>
<p>Here is my build command</p>
<p><code>cardano-cli transaction build --alonzo-era --testnet-magic 1097911063 --change-address &lt;change_addr&gt; --tx-in &lt;tx_in&gt; --tx-out &lt;recpt_addr&gt;+5827019 --out-file &lt;build_file&gt;</code></p>
 1142: <p>The problem is that your fee is probably not exactly <code>165721</code>.</p>
<ul>
<li>You have <code>6000000</code> lovelace</li>
<li>You want to send <code>5827019</code> lovelace to <code>recpt_addr</code></li>
<li>The fee is something like <code>165721</code> but not exactly (probably less)</li>
<li>Some lovelace are left and the command tries to send them to <code>change_addr</code></li>
</ul>
<p>You can inspect the transaction using <code>cardano-cli transaction view --tx-body-file &lt;build_file&gt;</code> to see the problem, then you can adjust your command params accordingly.</p>
<p>Maybe it would also work if you simply set the change address to the same address as the recipient:</p>
<ul>
<li><code>--change-address &lt;recpt_addr&gt;</code></li>
</ul>
