Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set placeholder fee for fee-calculating transaction #283

Merged
merged 3 commits into from
Sep 12, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions docs/native-tokens/minting.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ Minting NFTs will follow the same process, with only a few tweaks. If you want t
1. A running and synced Cardano node - accessible through the `cardano-cli` command. This guide is written with `cardano-cli` v 1.27.0. Some commands may be subject to change.
2. You have some knowledge in Linux as to navigation between directories, creating and editing files, and setting and inspecting variables via Linux shell.


## Overview
This tutorial will give you a copy & pastable walk through the complete token lifecycle:

Expand Down Expand Up @@ -106,7 +105,6 @@ testnet="testnet-magic 1097911063"
tokenname1="Testtoken"
tokenname2="SecondTesttoken"
tokenamount="10000000"
fee="0"
output="0"
```

Expand Down Expand Up @@ -285,9 +283,14 @@ $ txix="0"
$ funds="1000000000"
$ policyid=$(cat policy/policyID)
```
Also, transactions only used to calculate fees must still have a fee set, though it doesn't have to be exact. The calculated fee will be included *the second time* this transaction is built (i.e. the transaction to sign and submit). This first time, only the fee parameter *length* matters, so here we choose a maximum value ([note](https://github.com/cardano-foundation/developer-portal/pull/283#discussion_r705612888)):

```bash
$ fee="300000"
```

Now we are ready to build the first transaction to calculate our fee and save it in a file called <i>matx.raw</i>.
We will reference the variables in our transaction to improve readability because we saved almost all of the needed values in variables.
We will reference the variables in our transaction to improve readability because we saved almost all of the needed values in variables.
This is what our transaction looks like:
```bash
cardano-cli transaction build-raw \
Expand Down