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

Update query tip JSON in documentation #2598

Merged
merged 3 commits into from
Apr 12, 2021
Merged
Show file tree
Hide file tree
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
14 changes: 7 additions & 7 deletions cardano-cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,20 @@
A CLI utility to support a variety of key material operations (genesis, migration, pretty-printing..) for different system generations.

The general synopsis is as follows:
```

```
Usage: cardano-cli (Genesis related CMDs | Key related CMDs | Delegation related CMDs | Transaction related CMDs | Local node related CMDs)
```

The top-level commands are as shown below.

```
```bash
$ cardano-cli --help
cardano-cli - utility to support a variety of key operations (genesis
generation, migration, pretty-printing..) for different system generations.

Usage: cardano-cli (Era based commands | Byron specific commands | Miscellaneous commands)
Usage: cardano-cli (Era based commands | Byron specific commands |
Miscellaneous commands)

Available options:
--version Show the cardano-cli version
Expand Down Expand Up @@ -44,12 +46,10 @@ Miscellaneous commands
version Show the cardano-cli version
```

```

Byron-specific commands

```
cardano-cli byron --help
```bash
$ cardano-cli byron --help
Usage: cardano-cli byron (key | transaction | query | genesis | governance |
miscellaneous)
Byron specific commands
Expand Down
13 changes: 7 additions & 6 deletions doc/reference/building-and-signing-tx.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,16 @@ When building and submitting a transaction in the shelley era you need to check
Look for the value of `SlotNo`

{
"blockNo": 16829,
"headerHash": "3e6f59b10d605e7f59ba8383cb0ddcd42480ddcc0a85d41bad1e4648eb5465ad",
"slotNo": 369200
"epoch": 259,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

"hash": "dbf5104ab91a7a0b405353ad31760b52b2703098ec17185bdd7ff1800bb61aca",
"slot": 26633911,
"block": 5580350
}

Therefore, if N = 200 slots

invalid-hereafter = 369200 + 200
invalid-hereafter = 369400
invalid-hereafter = 26633911 + 200
invalid-hereafter = 26634111

**Build the transaction**

Expand All @@ -85,7 +86,7 @@ This time we include all the paramenters:
--tx-in 4e3a6e7fdcb0d0efa17bf79c13aed2b4cb9baf37fb1aa2e39553d5bd720c5c99#4 \
--tx-out $(cat payment2.addr)+100000000 \
--tx-out $(cat payment.addr)+999899832035 \
--invalid-hereafter 369400 \
--invalid-hereafter 26634111 \
--fee 167965 \
--out-file tx.raw

Expand Down
4 changes: 2 additions & 2 deletions doc/reference/cardano-node-cli-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ The `stake-address` command contains the following sub commands:

*cardano-cli transaction*
The `transaction` command contains the following sub commands:
* `build-raw`: builds a low-level transaction (uses the --cardano-mode, --byron-mode, --shelley mode flags)
* `build-raw`: builds a low-level transaction (uses the `--cardano-mode`, `--byron-mode`, `--shelley-mode` flags)
* `sign`: signs the transaction
* `assemble` : combines and assembles the transaction witness(es) with a transaction body to create a transaction
* `witness`: witnesses a transaction
* `submit`: submits the transaction to the local node whose Unix domain socket is obtained from the CARANO_NODE_SOCKET_PATH environment variable (uses the --cardano-mode, --byron-mode, --shelley mode flags)
* `submit`: submits the transaction to the local node whose Unix domain socket is obtained from the CARANO_NODE_SOCKET_PATH environment variable (uses the `--cardano-mode`, `--byron-mode`, `--shelley-mode` flags)
* `calculate-min-fee`: calculates the minimum fee for the transaction
* `txid`: retrieves the transaction ID
* `policyid`: retrieves the transaction ID
Expand Down
Loading