2

I am following the cardano developers tutorial to create NFT using Cardano-cli

At the end, when submitting the transaction I get the following error :

Command failed: transaction submit Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraAlonzo (ApplyTxError [UtxowFailure (WrappedShelleyEraFailure (UtxoFailure (OutputTooSmallUTxO [(Addr Testnet (KeyHashObj (KeyHash "a7102f357a41445de696f938ca97ebe94cc93ec7c587bee7374cffc7")) StakeRefNull,Value 0 (fromList [(PolicyID {policyID = ScriptHash "6980e14a6a158448066df02b641657f798275ac1ea1177cf517180c0"},fromList [("NFT1",1)])]),SNothing)]))),UtxowFailure (WrappedShelleyEraFailure (UtxoFailure (ValueNotConservedUTxO (Value 996981629 (fromList [(PolicyID {policyID = ScriptHash "6980e14a6a158448066df02b641657f798275ac1ea1177cf517180c0"},fromList [("NFT1",1)])])) (Value 200000 (fromList [(PolicyID {policyID = ScriptHash "6980e14a6a158448066df02b641657f798275ac1ea1177cf517180c0"},fromList [("NFT1",1)])])))))])

I have two questions :

  1. Can someone help me to identify the error ?
  2. Is there some documentation/tool somewhere to understand the cardano-cli errors ? I had some in the past and they are not indicative at all imo

Thank you so much

2

1) You actually have 2 errors: OutputTooSmallUTxO, ValueNotConservedUTxO.

---Error 1 OutputTooSmallUTxO

As mentioned here, it is right that minimum to send ADA is 1 ADA, but since you are sending an NFT that requirement is roughly 1.4ish ADA on the minimum to attach when sending the NFT (as fee is calculated by size of transaction, check out here Minimum ADA for Token Bundles)

I'd suggest for now just say 1.6 ADA or just go with 2 ADA (2 000 000 lovelace) if you on testnet if you just want it to work.

---Error 2 ValueNotConservedUTxO

This stems from not balancing the transaction. You have to remember that everything that goes in, must go out. SO if Anna has 50 ADA and 1 NFT, and wants to send 25 ADA to Bob, the resulting output would be 24 ADA and 1 NFT back to Anna | 25 ADA to Bob | 1 ADA for fee

2) For the errors, just keep reading into them as they explain themselves to an extent. Keep going into the parenthesis and it can help to seperate it out by lines. Here is a good resource you can input the errors specific name IOHK lookup. You can match the error text to the cli command you did (if you add your command can better explain) Most errors are from not balancing the fees, which is sort of fixed with the new cardano-cli transaction build which includes fees and doesn't make you calculate them, but you still need to make sure the tokens are balanced as well (if minting new and all that).

0

It says that you have OutputTooSmallUTxO which means that your ADA output for the address must been too small. As I can see you're output is 200000 lovelace which is 0.2 ADA.

Minimal ADA per transaction is 1 ADA so try increasing output to at least 1 ADA.

-1
  1. The error you are looking for is ValueNotConservedUTxO.

  2. Not that I know of, but most of them are pretty obvious. If not, usually a quick google does the thing.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.