OutputTooSmallUTxO with 5652098 lovelace

I know that we are supposed to transfer at least 1 $ADA when we send an NFT and to be sure one can transfer 2 (it seems to be the standard right now).

But for some reason, even though I transfer 2 $ADA, cardano-cli seems to have problems with the 5652098 lovelace (5.6 $ADA) that remain in my txin when transaction finishes

UtxoFailure (OutputTooSmallUTxO [(Addr Mainnet (KeyHashObj (KeyHash "79ffb6422c51071ca861206a572aa0f1568b2c605db5c8b024a71b55")) StakeRefNull,Value 5652098

If you need I can share the cardano-cli command, just let me know.

I checked that my balance is ok 8095751 initial funds−443653 (fee)−5652098 (remains)−2000000 (transferred with NFT) = 0

Any ideas? Thanks in advance!

Hi!

please share the command, and the whole error

Sure. No problem. First you need to know that I managed to solve it.

This was the command

cardano-cli transaction build-raw --fee 443653 --out-file 210518_143421566_mgmn_genesis_funding_tx.body --tx-in d7c671df4b5e9a2dc1641346f16c9021509aaa3d0640b27e32c1035562650fa7#0 \

--tx-out addr1v9ulldjz93gsw89gvysx54e25rc4dzevvpwmtj9syjn3k4gumfcs3+5652098+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.Cardagotchi04695+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.Cardagotchi06594+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.Cardagotchi05946+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.Cardagotchi02633+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.Cardagotchi08469+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.Cardagotchi06710+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.Cardagotchi01876+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.CardagotchiOvoOnoM01349+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.Cardagotchiindianamith02243+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.Cardagotchi04571+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.Cardagotchi00649+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.Cardagotchi04103+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.Cardagotchi08842+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.Cardagotchi06999+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.CardagotchiInti01997+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.Cardagotchi03332+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.Cardagotchi00648+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.Cardagotchi03571+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.Cardagotchi06070+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.Cardagotchi03274+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.Cardagotchi02410+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.Cardagotchi04387+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.CardagotchiMrIntangble09391+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.Cardagotchicandle06394+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.Cardagotchi07539+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.Cardagotchi04138+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.Cardagotchi01481+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.Cardagotchi09490+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.Cardagotchi05201+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.Cardagotchi08985+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.CardagotchiCharlyHosken01021+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.Cardagotchi04971+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.Cardagotchi07621+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.Cardagotchi02237+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.Cardagotchi06674+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.Cardagotchi00785+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.Cardagotchi04520+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.Cardagotchi02642+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.Cardagotchi08050 \

--tx-out addr1q9254euy7ms7kevvz4s5zj5aypz0e3twhy39eyln97wrn37l8pd0p8a6n368nden5tw7jttkfqhgk7g20mgv7cwq2zds5panyl+2000000+1 1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7.Cardagotchi00641

This was the whole error:

cardano_clusterlib.clusterlib.CLIError: An error occurred running a CLI command `cardano-cli transaction submit --mainnet --tx-file 210518_153259933_vgwc_genesis_funding_tx.signed --cardano-mode` on path `/home/gabriel/Documents/workspace/cardano-minter`: Command failed: transaction submit  Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraMary (ApplyTxError [UtxowFailure (UtxoFailure (OutputTooSmallUTxO [(Addr Mainnet (KeyHashObj (KeyHash "79ffb6422c51071ca861206a572aa0f1568b2c605db5c8b024a71b55")) StakeRefNull,Value 4652098 (fromList [(PolicyID {policyID = ScriptHash "1746ee8096f7f1da9c1858a3254db610106e0d9cc42fce300d5e2ed7"},fromList [("Cardagotchi00648",1),("Cardagotchi00649",1),("Cardagotchi00785",1),("Cardagotchi01481",1),("Cardagotchi01876",1),("Cardagotchi02237",1),("Cardagotchi02410",1),("Cardagotchi02633",1),("Cardagotchi02642",1),("Cardagotchi03274",1),("Cardagotchi03332",1),("Cardagotchi03571",1),("Cardagotchi04103",1),("Cardagotchi04138",1),("Cardagotchi04387",1),("Cardagotchi04520",1),("Cardagotchi04571",1),("Cardagotchi04695",1),("Cardagotchi04971",1),("Cardagotchi05201",1),("Cardagotchi05946",1),("Cardagotchi06070",1),("Cardagotchi06594",1),("Cardagotchi06674",1),("Cardagotchi06710",1),("Cardagotchi06999",1),("Cardagotchi07539",1),("Cardagotchi07621",1),("Cardagotchi08050",1),("Cardagotchi08469",1),("Cardagotchi08842",1),("Cardagotchi08985",1),("Cardagotchi09490",1),("CardagotchiCharlyHosken01021",1),("CardagotchiInti01997",1),("CardagotchiMrIntangble09391",1),("CardagotchiOvoOnoM01349",1),("Cardagotchicandle06394",1),("Cardagotchiindianamith02243",1)])]))]))])

To solve it what I did was adding another --tx-in with the money to pay the fee and I left the txin with the tokens with the same amount.

Interesting right?

Great!

Hope this help for others as well…

yep. Do you know if I’m supposed to create a bug ticket for this? Doesn’t sound like a good behaviour.
Furthermore I managed to do more NFT transfers and I even left the auxiliar txin with less ADA than the one with the NFTs and it’s still working so… this has no sense.
What do you guys think?

So, would be great to see first what was the solution - right now I can not understand it fully…
but yes, you can raise a ticket on zendesk, and hope you get a proper answer…
https://iohk.zendesk.com/hc/en-us

You need to calculate the minimum ada for the transaction, as you have a lot of tokens in your tx.
I think you need around 6.6ADA for this.

Check this

1 Like
min-ada-value

Thanks for answering.
min-ada-value paramter is about 1 ADA right now. Am I right?
How can I calculate what you said? How did you came up with 6.6 ADA number? I thought the fee value + the min-ada-value was enough for the transaction to work

I am very busy atm but will respond you in 6hrs
UPDATED:
You need to check the calculation in the bottom of the page I sent.

1 Like

I don’t think this is a bug. As @_ilap wrote you will need a bit more ada in the utxo with the remaining tokens. When you try to transfer one token with 2 ada you don’t have enough ada left for the utxo with the other tokens (5.7 something). When you took the 2 ada from another wallet then you have enough ada for both utxos :slight_smile:
1 ada is the min value but when you have many tokens in the same utxo you need more than that.

(also I think there will be a way to calculate the exact amount in the cli-tool now, but I have not tried yet. I usually just add some extra ada on top so I don’t need to bother)

2 Likes

thanks! I get it now.

FYI, I tried to empty an account and could not. I had the same error OutPutTooSmallUTxO. I had to increase the differnce from 500000 lovelace to 1.5 ADA. It was finally a successful transaction, but left 1.5 ada in the account tha tI may not be able to recover …

1.5 ADA without any tokens present in the wallet?