<p>The only one I know is this:</p>
<ul>
<li><a href="https://github.com/input-output-hk/cardano-node/blob/master/doc/reference/cardano-node-cli-reference.md" rel="nofollow noreferrer">Cardano Node CLI Reference</a></li>
<li>[EDIT] <a href="https://developers.cardano.org/docs/stake-pool-course/handbook/create-simple-transaction" rel="nofollow noreferrer">Create Simple Transaction</a> (although it's a bit outdated) this one explains very well how to create a transaction and calculate fees.</li>
</ul>
<p>Related to fee, first you need to build the transaction then you can use this command:</p>
<pre><code>cardano-cli transaction calculate-min-fee \
  --tx-body-file transaction.raw \
  --tx-in-count 1 \
  --tx-out-count 1 \
  --witness-count 2 \
  --testnet-magic 1097911063 \
  --protocol-params-file protocol-params.json
</code></pre>
<p>Where:</p>
<blockquote>
<p>--tx-body-file FILE      Input filepath of the JSON TxBody.
<br />
--tx-in-count NATURAL    The number of transaction inputs.
<br />
--tx-out-count NATURAL   The number of transaction outputs.
<br />
--witness-count NATURAL  The number of Shelley key witnesses.</p>
</blockquote>
<p>There is a <a href="https://cardano.stackexchange.com/a/4371/1231">good explanation to calculate fees</a></p>

CC BY-SA 4.0
2021-11-18T22:05:13.217Z
2021-11-19T05:18:38.370Z
2021-11-19T05:18:38.370Z
georgeos
<p>I'm trying to fix something (the cardanocli-js) that broke with this last update (1.31.0) but i don't know how to see the correct way that, in 1.31.0 version, the Cli make transactions (or find how much cost the fee). I didn't find the list of commands and their correct use..</p>
<p>I know that using help i can somewhat get it. But there is a more explanatory version somewhere?</p>
<p>thank you.</p>

<cardano-cli>
How to get a full command list of the Cardano-cli
# How to get a full command list of the Cardano-cli

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

I'm trying to fix something (the cardanocli-js) that broke with this last update (1.31.0) but i don't know how to see the correct way that, in 1.31.0 version, the Cli make transactions (or find how much cost the fee). I didn't find the list of commands and their correct use..

I know that using help i can somewhat get it. But there is a more explanatory version somewhere?

thank you.

**Tags:** cardano-cli

---

## 1 answers

### Answer by username_1 on 2021-11-18. Score: 3 | Accepted answer

The only one I know is this:

Cardano Node CLI Reference
[EDIT] Create Simple Transaction (although it's a bit outdated) this one explains very well how to create a transaction and calculate fees.

Related to fee, first you need to build the transaction then you can use this command:
cardano-cli transaction calculate-min-fee \
  --tx-body-file transaction.raw \
  --tx-in-count 1 \
  --tx-out-count 1 \
  --witness-count 2 \
  --testnet-magic 1097911063 \
  --protocol-params-file protocol-params.json

Where:

--tx-body-file FILE      Input filepath of the JSON TxBody.

--tx-in-count NATURAL    The number of transaction inputs.

--tx-out-count NATURAL   The number of transaction outputs.

--witness-count NATURAL  The number of Shelley key witnesses.

There is a good explanation to calculate fees


---

