<p>On first glance it seems like your not building  your outputs in the transactions properly.</p>
<p>When using the same address to mint multiple tokens and NFTs, you need to build an output for them when building a transaction. On testnet you may want to use fresh addresses to avoid this.</p>

CC BY-SA 4.0
2021-06-29T09:06:12.223Z
yeah I just did it again using a new walet. thanks
cheff wallets
CC BY-SA 4.0
2021-06-28T22:54:57.103Z
2021-06-28T22:54:57.103Z
jnprogrammer
<p>I have a generated wallet, so I need to use these commands to transfer my minted NFT's out.</p>
<p>I'm not stuck with this very odd and annoying stuff, saying OutputTooSmallUTxO...
I really don't know what to do about it, I'm copying here the commands I'm trying omitting the names and policy ids for privacy and easy for you guys to helping me out...</p>
<pre><code>cardano-cli transaction build-raw \
--mary-era \
--fee 0 \
--tx-in $tx_id#0 \
--tx-out $sender+6506622+&quot;1 token1 + 1 token2 + 1 token3 + 1 token4 + 1 token5 + 1 token6 + 1 token7 + 16 token8 + 101 token9&quot; \
--tx-out $recipient+0+&quot;1 token1 + 1 token2 + 1 token3 + 1 token4 + 1 token5 + 1 token6 + 1 token7 + 16 token8 + 101 token9&quot; \
--out-file tx.raw

fee=$(cardano-cli transaction calculate-min-fee \
  --tx-body-file tx.raw \
  --tx-in-count 1 \
  --tx-out-count 2 \
  --witness-count 1 \
  --mainnet \
  --protocol-params-file protocol.json | awk '{ print $1 }')
afterfee=$(($total_balance-$fee-2000000))

cardano-cli transaction build-raw \
--mary-era \
--fee $fee \
--tx-in $tx_id#0 \
--tx-out $sender+$afterfee+&quot;1 token1 + 1 token2 + 1 token3 + 1 token4 + 1 token5 + 1 token6 + 1 token7 + 16 token8 + 101 token9&quot; \
--tx-out $recipient+2000000+&quot;1 token1 + 1 token2 + 1 token3 + 1 token4 + 1 token5 + 1 token6 + 1 token7 + 16 token8 + 101 token9&quot; \
--out-file rec_matx.raw
</code></pre>
<p>Error:</p>
<pre><code>    Command failed: transaction submit  Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraMary (ApplyTxError [UtxowFailure (UtxoFailure (**OutputTooSmallUTxO** [(Addr Mainnet (KeyHashObj (KeyHash &quot;...&quot;)) (StakeRefBase (KeyHashObj (KeyHash &quot;...&quot;))),Value 2000000 (fromList [(PolicyID {policyID = ScriptHash &quot;...&quot;},fromList [(&quot;x&quot;,1)]),(PolicyID {policyID = ScriptHash &quot;...&quot;},fromList [(&quot;token1&quot;,1),(&quot;token2&quot;,1),(&quot;token3&quot;,1),(&quot;token4&quot;,1),(&quot;token5&quot;,1),(&quot;token6&quot;,1)]),

(PolicyID {policyID = ScriptHash &quot;...&quot;},fromList [(&quot;x&quot;,16),(&quot;x&quot;,101)])]))])),UtxowFailure (UtxoFailure (ValueNotConservedUTxO (Value 8506622 (fromList [(PolicyID {policyID = ScriptHash &quot;mmmmmm.....&quot;},fromList 

[(&quot;y&quot;,1)]),(PolicyID {policyID = ScriptHash &quot;...&quot;},fromList [(&quot;x&quot;,1),(&quot;a&quot;,1),(&quot;x&quot;,1),(&quot;x&quot;,1),(&quot;b&quot;,1),(&quot;x&quot;,1)]),(PolicyID {policyID = ScriptHash &quot;xxxxx&quot;},fromList [(&quot;n&quot;,16),(&quot;a&quot;,101)])])) (Value 8506622 (fromList [(PolicyID 

{policyID = ScriptHash &quot;...&quot;},fromList [(&quot;x&quot;,2)]),(PolicyID {policyID = ScriptHash &quot;...&quot;},fromList [token list]),
(PolicyID {policyID = ScriptHash &quot;...&quot;},fromList [token list])]))))])
</code></pre>
<p>The final goal is to transfer out all these tokens to another wallet in order to clean this out because I have to mint more 23 NFT's now...</p>

<nft><native-assets><minting>
OutputTooSmallUTxO error, trying to send more than 9 tokens
# OutputTooSmallUTxO error, trying to send more than 9 tokens

(Asked by: username_0 on 2021-06-28)

I have a generated wallet, so I need to use these commands to transfer my minted NFT's out.
I'm not stuck with this very odd and annoying stuff, saying OutputTooSmallUTxO...
I really don't know what to do about it, I'm copying here the commands I'm trying omitting the names and policy ids for privacy and easy for you guys to helping me out...
cardano-cli transaction build-raw \
--mary-era \
--fee 0 \
--tx-in $tx_id#0 \
--tx-out $sender+6506622+"1 token1 + 1 token2 + 1 token3 + 1 token4 + 1 token5 + 1 token6 + 1 token7 + 16 token8 + 101 token9" \
--tx-out $recipient+0+"1 token1 + 1 token2 + 1 token3 + 1 token4 + 1 token5 + 1 token6 + 1 token7 + 16 token8 + 101 token9" \
--out-file tx.raw

fee=$(cardano-cli transaction calculate-min-fee \
  --tx-body-file tx.raw \
  --tx-in-count 1 \
  --tx-out-count 2 \
  --witness-count 1 \
  --mainnet \
  --protocol-params-file protocol.json | awk '{ print $1 }')
afterfee=$(($total_balance-$fee-2000000))

cardano-cli transaction build-raw \
--mary-era \
--fee $fee \
--tx-in $tx_id#0 \
--tx-out $sender+$afterfee+"1 token1 + 1 token2 + 1 token3 + 1 token4 + 1 token5 + 1 token6 + 1 token7 + 16 token8 + 101 token9" \
--tx-out $recipient+2000000+"1 token1 + 1 token2 + 1 token3 + 1 token4 + 1 token5 + 1 token6 + 1 token7 + 16 token8 + 101 token9" \
--out-file rec_matx.raw

Error:
    Command failed: transaction submit  Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraMary (ApplyTxError [UtxowFailure (UtxoFailure (**OutputTooSmallUTxO** [(Addr Mainnet (KeyHashObj (KeyHash "...")) (StakeRefBase (KeyHashObj (KeyHash "..."))),Value 2000000 (fromList [(PolicyID {policyID = ScriptHash "..."},fromList [("x",1)]),(PolicyID {policyID = ScriptHash "..."},fromList [("token1",1),("token2",1),("token3",1),("token4",1),("token5",1),("token6",1)]),

(PolicyID {policyID = ScriptHash "..."},fromList [("x",16),("x",101)])]))])),UtxowFailure (UtxoFailure (ValueNotConservedUTxO (Value 8506622 (fromList [(PolicyID {policyID = ScriptHash "mmmmmm....."},fromList 

[("y",1)]),(PolicyID {policyID = ScriptHash "..."},fromList [("x",1),("a",1),("x",1),("x",1),("b",1),("x",1)]),(PolicyID {policyID = ScriptHash "xxxxx"},fromList [("n",16),("a",101)])])) (Value 8506622 (fromList [(PolicyID 

{policyID = ScriptHash "..."},fromList [("x",2)]),(PolicyID {policyID = ScriptHash "..."},fromList [token list]),
(PolicyID {policyID = ScriptHash "..."},fromList [token list])]))))])

The final goal is to transfer out all these tokens to another wallet in order to clean this out because I have to mint more 23 NFT's now...

**Tags:** nft, native-assets, minting

---

## 1 answers

### Answer by username_1 on 2021-06-28. Score: 1 | Accepted answer

On first glance it seems like your not building your outputs in the transactions properly.

When using the same address to mint multiple tokens and NFTs, you need to build an output for them when building a transaction. On testnet you may want to use fresh addresses to avoid this.

> **Comments:**
> **username_0**: yeah I just did it again using a new walet. thanks  

---

