<p><code>protocol.json</code> file from <code>cardano-cli</code> contains protocol parameters of the current network (mainnet, preview, preprod...).</p>
<p>It is used by <code>cardano-cli</code> when using various subcommands, such as <code>cardano-cli transaction calculate-min-fee</code>.</p>
<p><em>Actually, I do not know of any other subcommand using this file, so you are are not using it, you do not need to generate it.</em></p>

CC BY-SA 4.0
2022-12-05T18:53:52.917Z
Thanks. Development is happening so quickly that "how to" pages from only 16 months ago are already out of date.
XiTouch
CC BY-SA 4.0
2022-12-05T10:38:02.167Z
2022-12-05T10:38:02.167Z
Marek Mahut - StakeNuts
<p>I'm tinkering with creating NFTs via the cardano-cli. The various &quot;how-to&quot; pages I have found all have me download protocol.json using</p>
<pre><code>cardano-cli query protocol-parameters \
--testnet-magic 1097911063 \
--out-file protocol.json
</code></pre>
<p>What I do not see is how that file is then utilized. It is never accessed or referenced in any of the steps needed to create the NFT, and certainly not in any of the code. Every other piece of code has very precise file references. Can anyone shed light? Thanks.</p>

CC BY-SA 4.0
2022-12-04T13:29:04.673Z
In my understanding, their are various parameters like the constants involved when computing minimum ada requirement in a UTxO, etc., which are mentioned in `protocol.json` file.
Sourabh
<cardano-cli><nft>
How is protocol.json used when minting NFTs?
# How is protocol.json used when minting NFTs?

(Asked by: username_0 on 2022-12-03)

I'm tinkering with creating NFTs via the cardano-cli. The various "how-to" pages I have found all have me download protocol.json using
cardano-cli query protocol-parameters \
--testnet-magic 1097911063 \
--out-file protocol.json

What I do not see is how that file is then utilized. It is never accessed or referenced in any of the steps needed to create the NFT, and certainly not in any of the code. Every other piece of code has very precise file references. Can anyone shed light? Thanks.

**Tags:** cardano-cli, nft
> **Comments:**
> **username_1**: In my understanding, their are various parameters like the constants involved when computing minimum ada requirement in a UTxO, etc., which are mentioned in `protocol.json` file.  

---

## 1 answers

### Answer by username_2 on 2022-12-05. Score: 1 | Accepted answer

`protocol.json` file from `cardano-cli` contains protocol parameters of the current network (mainnet, preview, preprod...).

It is used by `cardano-cli` when using various subcommands, such as `cardano-cli transaction calculate-min-fee`.

*Actually, I do not know of any other subcommand using this file, so you are are not using it, you do not need to generate it.*

> **Comments:**
> **username_0**: Thanks. Development is happening so quickly that "how to" pages from only 16 months ago are already out of date.  

---

