Help at Deciphering Errors after Submitting a Signed File to Mint an NFT

Hi there!

After many hours of looking at literature and videos I was able to get to the last step of minting a native token with Metadata and I am truly stumped at the errors I am getting after using this command to submit the signed file:

cardano-cli transaction submit --tx-file matx.signed --mainnet

Errors:

Command failed: transaction submit Error: Error while submitting tx: ShelleyTxValidationError ShelleyBasedEraMary (ApplyTxError [LedgerFailure (UtxowFailure (UtxoFailure (ValueNotConservedUTxO (Value 5000000 (fromList [(PolicyID {policyID = ScriptHash "f52a4135cb2f0b13189c9568bd1995814f40d24f1ff51e6e00789de3"},fromList [("llama001",225)])])) (Value 5000000 (fromList [(PolicyID {policyID = ScriptHash "9c88bc27959b7ff1df9348c3c4aa218bf863b8f3aac63193cebacd74"},fromList [("cardanollama001",225)])]))))),LedgerFailure (UtxowFailure (MissingScriptWitnessesUTXOW (fromList [ScriptHash "f52a4135cb2f0b13189c9568bd1995814f40d24f1ff51e6e00789de3"])))])

The transaction that I built before submitting the signed file is:

cardano-cli transaction build-raw \ 
--mary-era \
--fee 189085 \
--tx-in fdb825208f624bb27792fc2186def0c797b239698423b1544f5a1210c35dce4b#0 \ 
--tx-out addr1qyqfrrxczz32xum5qk29r4uv0kdxavj68c73xlh68npkqmhwjqu5nhl5htzprzxql3uwsyck8yfhlmjflvpeu028xmgswra5em+4810915+"225 9c88bc27959b7ff1df9348c3c4aa218bf863b8f3aac63193cebacd74.cardanollama001" \ 
--mint="225 f52a4135cb2f0b13189c9568bd1995814f40d24f1ff51e6e00789de3.llama001" \
--metadata-json-file metadata.json \ 
--invalid-hereafter=31800000 \
--out-file matx.raw

I would really appreciate if you could help me work through this :slight_smile:

It looks like --tx-out and --mint are different coins: they have different policy IDs and different token names. Both should match the policy ID for the minting script.

Oh damn you are right! I don’t know how I missed that!

Thank you!

1 Like