Skip to content

Commit

Permalink
Merge #2598
Browse files Browse the repository at this point in the history
2598: Update query tip JSON in documentation r=newhoggy a=newhoggy



Co-authored-by: John Ky <john.ky@iohk.io>
  • Loading branch information
iohk-bors[bot] and newhoggy committed Apr 12, 2021
2 parents 9af6ed7 + 65c9d94 commit e5910db
Show file tree
Hide file tree
Showing 8 changed files with 139 additions and 130 deletions.
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,
"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

0 comments on commit e5910db

Please sign in to comment.