2

I'm following this doc on how to mint native assets with Cardano and have received an error that I can't get around. The problem is with the $output variable in the $tx-out parameter of the cardano-cli transaction buildraw command. I don't see where this variable is assigned in the documentation. Any thoughts or ideas on how I'm missing the variable?

option --tx-out:
unexpected "+"
expecting white space or multi-asset value expression

tx-out parameter

1 Answer 1

1

You are right it is missing the documentation, but basically, it is the your UTXO output amount.

You can calculate it by finding out the amount of lovelaces on the UTXO you are spending in your tx-in minus the fees.

2
  • Makes sense. I'll assign the output variable accordingly. Thank you very much! Commented Nov 19, 2021 at 17:34
  • I see the formula further in the documentation, in a "Note" section: 3. the output in Lovelace (ada) (output = input amount — fee). Commented Nov 19, 2021 at 17:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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