user6616: As per title, want to ask about cardano-cli transaction build for NFT, that I read on this guide or maybe this one
On near the last step, where it says about Minimum required UTxO - I wonder, if we can automatically handle it, so we don't need to change the variable of that minimum UTxO (yes, minimum UTxO, NOT Minimum Fee).
Is that possible? If yes, what command / option needed on that particular case?
Reason is, if we want to build, like a single command (or automation), to mint an NFT, we couldn't, since we don't know for sure if the Minimum required UTxO is enough (which, 1.4 ADA) or not.
Example, what if, suddenly, it's more than 1.4 ADA? We do need to change it manually, then hit it again. Which I think, it's a hassle.
Thanks!

user1118: The minimum Ada value is defined in the protocol parameter here: minUTxOValue
So, you can query the network via cardano-cli to dynamically get the minUTxOValue.
cardano-cli query protocol-parameters --mainnet
From the docs:
https://docs.cardano.org/native-tokens/minimum-ada-value-requirement
Case 1: Token bundle B in the UTXO u contains only ada (no other tokens) minAda (u) = minUTxOValue
Case 2: Token bundle B in the UTXO u contains ada as well as other tokens minAda (u) = max (minUTxOValue, (quot (minUTxOValue, adaOnlyUTxOSize)) * (utxoEntrySizeWithoutVal + (size B)))
Related links here:
Calculation of transaction fees
https://adapools.org/protocol-parameters

6616: <p>As per title, want to ask about <code>cardano-cli transaction build</code> for NFT, that I read on <a href="https://developers.cardano.org/docs/native-tokens/minting-nfts#crafting-the-transaction" rel="nofollow noreferrer">this guide</a> or <a href="https://devslug.com/how-to-mint-an-nft-on-cardano-testnet-using-the-command-line#build-the-transaction" rel="nofollow noreferrer">maybe this one</a></p>
<p>On near the last step, where it says about <code>Minimum required UTxO</code> - I wonder, if we can automatically handle it, so we don't need to change the <code>variable</code> of that minimum UTxO (yes, minimum UTxO, <strong>NOT</strong> Minimum Fee).</p>
<p>Is that possible? If yes, what command / option needed on that particular case?</p>
<p>Reason is, if we want to build, like a single command (or automation), to mint an NFT, we couldn't, since we don't know for sure if the <code>Minimum required UTxO</code> is enough (which, 1.4 ADA) or not.</p>
<p>Example, what if, suddenly, it's more than <code>1.4 ADA</code>? We do need to change it manually, then hit it again. Which I think, it's a hassle.</p>
<p>Thanks!</p>
 1118: <p>The minimum Ada value is defined in the protocol parameter here: minUTxOValue</p>
<p>So, you can query the network via cardano-cli to dynamically get the minUTxOValue.</p>
<p>cardano-cli query protocol-parameters --mainnet</p>
<p>From the docs:</p>
<p><a href="https://docs.cardano.org/native-tokens/minimum-ada-value-requirement" rel="nofollow noreferrer">https://docs.cardano.org/native-tokens/minimum-ada-value-requirement</a></p>
<p>Case 1: Token bundle B in the UTXO u contains only ada (no other tokens) minAda (u) = minUTxOValue</p>
<p>Case 2: Token bundle B in the UTXO u contains ada as well as other tokens minAda (u) = max (minUTxOValue, (quot (minUTxOValue, adaOnlyUTxOSize)) * (utxoEntrySizeWithoutVal + (size B)))</p>
<p>Related links here:</p>
<p><a href="https://cardano.stackexchange.com/questions/4472/calculation-of-transaction-fees">Calculation of transaction fees</a></p>
<p><a href="https://adapools.org/protocol-parameters" rel="nofollow noreferrer">https://adapools.org/protocol-parameters</a></p>
