Skip to content

Commit

Permalink
correct consume-notes command
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominik1999 committed May 1, 2024
1 parent e0894cd commit db8a341
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
9 changes: 7 additions & 2 deletions docs/introduction/get-started/create-account-use-faucet.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,16 @@ The Miden client facilitates interaction with the Miden rollup and provides a wa
miden-client init
```

Accept the defaults for `Protocol`, `Node RPC Port`, and `Sqlite file path`by clicking enter.
Accept the default for `Protocol` by clicking enter.

When `Host` comes up, enter `18.203.155.106`

```sh
Host (default: localhost): 18.203.155.106
```

Then accept the defaults for `Node RPC Port`, and `Sqlite file path`.

4. Check you can sync with the blockchain.

```shell
Expand Down Expand Up @@ -137,13 +139,16 @@ State synced to block 179672
```shell
miden-client account -l
```
```shell
miden-client input-notes -l
```
4. Consume the note and add the funds from its vault to our account using the following command:
```shell
miden-client tx new consume-notes --account <Account-Id> <Note-Id>
miden-client tx new consume-notes <Account-Id> <Note-Id>
```
Amazing! You just have created a client-side zero-knowledge proof locally on your machine.
Expand Down
8 changes: 4 additions & 4 deletions docs/introduction/get-started/p2p-private.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ In this section, we show you how to make private transactions and send funds to
To do this, run:

```shell
miden-client tx new p2id --note-type private --sender <regular-account-id-A> --target <regular-account-id-B> --faucet <faucet-account-id> 50
miden-client tx new p2id --note-type private <regular-account-id-A> <regular-account-id-B> <faucet-account-id> 50
```

!!! note
Expand All @@ -47,7 +47,7 @@ In this section, we show you how to make private transactions and send funds to
2. First, sync the accounts.

```shell
miden-client sync # Make sure we have an updated view of the state
miden-client sync
```

3. Get the second note id.
Expand All @@ -59,7 +59,7 @@ In this section, we show you how to make private transactions and send funds to
4. Have the second account consume the note.

```sh
miden-client tx new consume-notes --account <regular-account-ID-B> <input-note-id>
miden-client tx new consume-notes <regular-account-ID-B> <input-note-id>
```

!!! tip
Expand All @@ -81,7 +81,7 @@ In this section, we show you how to make private transactions and send funds to
6. Check the original account:

```sh
miden-client account show <regular-account-ID-A> -v # Show account A's vault assets (950 fungible tokens)
miden-client account show <regular-account-ID-A> -v
```

![Result of listing miden accounts](../../img/get-started/account-a.png)
Expand Down
8 changes: 4 additions & 4 deletions docs/introduction/get-started/p2p-public.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,18 @@ To do this, we use two terminals with their own state (using their own `miden-cl
To do this, from the first client run:
```shell
miden-client tx new p2id --sender <basic-account-id-A> --target <basic-account-id-C> --faucet <faucet-account-id> 50 --note-type public
miden-client tx new p2id --note-type public <basic-account-id-A> <basic-account-id-C> <faucet-account-id> 50
```
!!! note
The faucet account id is `0xad904b3138d71d3e` and can also be found on the [Miden faucet website](https://testnet.miden.io/) under the title **Miden faucet**.
This generates a Pay-to-ID (`P2ID`) note containing `50` assets, transferred from one account to the other. As the note is public, the second account can receive the necessary details by syncing with the node.
This generates a Pay-to-ID (`P2ID`) note containing `50` tokens, transferred from one account to the other. As the note is public, the second account can receive the necessary details by syncing with the node.
2. First, sync the account on the new client.
```shell
miden-client sync # Make sure we have an updated view of the state
miden-client sync
```
3. At this point, we should have received the public note details.
Expand All @@ -86,7 +86,7 @@ To do this, we use two terminals with their own state (using their own `miden-cl
4. Have the second account consume the note.
```sh
miden-client tx new consume-notes --account <regular-account-ID-C> <input-note-id>
miden-client tx new consume-notes <regular-account-ID-C> <input-note-id>
```
!!! tip
Expand Down

0 comments on commit db8a341

Please sign in to comment.