Help Burning NFTs

Hi, I’m running into an issue when trying to burn tokens and after several goes I can’t spot the error, any help would be appreciated!

utxo 1481480 + 10 PlutoNFTAqua
utxo 5000000

cardano-cli transaction build-raw
–mary-era
–fee 0
–tx-in 9da23f073e67b873828de20884fd5ad26ded16888a8e74715db97df3e3aee1a7#0
–tx-in 31f4eb0a03dd77c6f04a133f6b48d7f26d9b07b20687302afc3aace4f86f04bb#0
–tx-out addr1vy6fn9dal2d58j8m09q0zyqsdrmhgc94gr9klkyxnzppcng6a3csw+6481480+"
10 6bd9647a8fcb36cd4257a85f8bb0ddf7c4cac8fc87668ac3d65b698b.PlutoNFTAqua "
–mint="-10 6bd9647a8fcb36cd4257a85f8bb0ddf7c4cac8fc87668ac3d65b698b.PlutoNFTAqua "
–out-file BurnPNFT2matx.raw

cardano-cli transaction calculate-min-fee
–tx-body-file BurnPNFT2matx.raw
–tx-in-count 2
–tx-out-count 1
–witness-count 2
–mainnet
–protocol-params-file protocol.json

cardano-cli transaction build-raw \
         --mary-era \
             --fee 183101 \
             --tx-in 9da23f073e67b873828de20884fd5ad26ded16888a8e74715db97df3e3aee1a7#0 \
             --tx-in 31f4eb0a03dd77c6f04a133f6b48d7f26d9b07b20687302afc3aace4f86f04bb#0 \
             --tx-out addr1vy6fn9dal2d58j8m09q0zyqsdrmhgc94gr9klkyxnzppcng6a3csw+11298379+"
               10 6bd9647a8fcb36cd4257a85f8bb0ddf7c4cac8fc87668ac3d65b698b.PlutoNFTAqua " \
             --mint="-10 6bd9647a8fcb36cd4257a85f8bb0ddf7c4cac8fc87668ac3d65b698b.PlutoNFTAqua " \
             --out-file BurnPNFT2matx.raw

The error is always ValueNotConservedUTxO so the amounts are not matching up somewhere

Thanks

Hi!
Do you start with 10 tokens? If you are burning all 10 of them I don’t think they should be present in the tx-out. Unless you start with 20 tokens :slight_smile:

Ah ok! Will try that, yes just start with 10 :slight_smile:

Worked a treat, many thanks Freja!

1 Like