<p>You are right it is missing the documentation, but basically, it is the your UTXO output amount.</p>
<p>You can calculate it by finding out the amount of lovelaces on the UTXO you are spending in your <code>tx-in</code> minus the fees.</p>

CC BY-SA 4.0
2021-11-19T17:34:48.327Z
Makes sense. I'll assign the output variable accordingly. Thank you very much!
Charles Arthur Wuthrich III
CC BY-SA 4.0
2021-11-19T17:43:34.657Z
I see the formula further in the documentation, in a "Note" section: 

3. the output in Lovelace (ada) (output = input amount — fee).
Charles Arthur Wuthrich III
CC BY-SA 4.0
2021-11-19T16:53:26.333Z
2021-11-19T16:53:26.333Z
Marek Mahut - StakeNuts
<p>I'm following <a href="https://developers.cardano.org/docs/native-tokens/minting#build-the-raw-transaction-to-send-to-oneself" rel="nofollow noreferrer">this</a> 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?</p>
<pre><code>option --tx-out:
unexpected &quot;+&quot;
expecting white space or multi-asset value expression
</code></pre>
<p><a href="https://i.sstatic.net/or6VB.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/or6VB.png" alt="tx-out parameter" /></a></p>

<native-assets><mint>
Minting Native Assests - Error Building the Raw Transaction: $output variable
# Minting Native Assests - Error Building the Raw Transaction: $output variable

(Asked by: username_0 on 2021-11-19)

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

**Tags:** native-assets, mint

---

## 1 answers

### Answer by username_1 on 2021-11-19. Score: 1 | Accepted answer

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.

> **Comments:**
> **username_0**: Makes sense. I'll assign the output variable accordingly. Thank you very much!  
> **username_0**: I see the formula further in the documentation, in a "Note" section:   3. the output in Lovelace (ada) (output = input amount — fee).  

---

