Skip to content

Commit aac701e

Browse files
authored
Merge pull request #763 from Chia-Network/fix-windows-quote-escape-notes
fix windows quote escape notes
2 parents 20781e2 + aa40614 commit aac701e

File tree

18 files changed

+69
-45
lines changed

18 files changed

+69
-45
lines changed

docs/guides/verifiable-credentials-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ chia rpc wallet vc_get '{"vc_id": "13ba084e78475327e41c60df5a108965d7a283f065b55
360360
To run the same command on Windows, you need to escape the quotes, so it looks like this (the braces have been removed to support the formatting for this page. You still need to use them in your actual commands.):
361361

362362
```powershell
363-
chia rpc wallet vc_get '\"vc_id\": \"13ba084e78475327e41c60df5a108965d7a283f065b5506e266ffb3563937b6c\"'
363+
chia rpc wallet vc_get '{\"vc_id\": \"13ba084e78475327e41c60df5a108965d7a283f065b5506e266ffb3563937b6c\"}'
364364
```
365365

366366
</details>

docs/rpc-reference/daemon.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@ This document will use Linux/MacOS RPC syntax. When running rpc commands on Wind
1717
For example, here is a typical RPC command on Linux and MacOS:
1818

1919
```powershell
20-
chia rpc daemon get_keys_for_plotting '{"fingerprints":[2104826454]}'
20+
chia rpc wallet create_new_wallet '{"wallet_type": "nft_wallet"}'
2121
```
2222

23-
To run the same command on Windows, you need to escape the quotes with backslashes. In other words, add a \ before each double quote, such that:
23+
To run the same command on Windows, you need to escape the quotes, so it looks like this (the braces have been removed to support the formatting for this page. You still need to use them in your actual commands.):
2424

25-
`"fingerprints"` becomes `\"fingerprints\"`
26-
etc
25+
```powershell
26+
chia rpc wallet create_new_wallet '{\"wallet_type\": \"nft_wallet\"}'
27+
```
2728

2829
</details>
2930

docs/rpc-reference/daos.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ chia rpc wallet dao_get_treasury_balance '{"wallet_id": 2}'
3535
To run the same command on Windows, you need to escape the quotes, so it looks like this (the braces have been removed to support the formatting for this page. You still need to use them in your actual commands.):
3636

3737
```powershell
38-
chia rpc wallet dao_get_treasury_balance '\"wallet_id\": 2'
38+
chia rpc wallet dao_get_treasury_balance '{\"wallet_id\": 2}'
3939
```
4040

4141
</details>

docs/rpc-reference/datalayer.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,14 @@ This document will use Linux/MacOS RPC syntax. When running rpc commands on Wind
1515
For example, here is a typical RPC command on Linux and MacOS:
1616

1717
```powershell
18-
chia rpc data_layer create_data_store '{"fee":"1000"}'
18+
chia rpc wallet create_new_wallet '{"wallet_type": "nft_wallet"}'
1919
```
2020

21-
To run the same command on Windows, you need to escape the quotes with backslashes. In other words, add a \ before each double quote, such that:
21+
To run the same command on Windows, you need to escape the quotes, so it looks like this (the braces have been removed to support the formatting for this page. You still need to use them in your actual commands.):
2222

23-
- `"fee"` becomes `\"fee\"`
24-
- `"1000"` becomes `\"1000\"`
25-
- etc
23+
```powershell
24+
chia rpc wallet create_new_wallet '{\"wallet_type\": \"nft_wallet\"}'
25+
```
2626

2727
</details>
2828

docs/rpc-reference/dids.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ chia rpc wallet create_new_wallet '{"wallet_type": "nft_wallet"}'
2121
To run the same command on Windows, you need to escape the quotes, so it looks like this (the braces have been removed to support the formatting for this page. You still need to use them in your actual commands.):
2222

2323
```powershell
24-
chia rpc wallet create_new_wallet '\"wallet_type\": \"nft_wallet\"'
24+
chia rpc wallet create_new_wallet '{\"wallet_type\": \"nft_wallet\"}'
2525
```
2626

2727
</details>

docs/rpc-reference/farmer.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@ This document will use Linux/MacOS RPC syntax. When running rpc commands on Wind
1717
For example, here is a typical RPC command on Linux and MacOS:
1818

1919
```powershell
20-
chia rpc farmer get_reward_targets '{"search_for_private_key": false}'
20+
chia rpc wallet create_new_wallet '{"wallet_type": "nft_wallet"}'
2121
```
2222

23-
To run the same command on Windows, you need to escape the quotes with backslashes. In other words, add a \ before each double quote, such that:
23+
To run the same command on Windows, you need to escape the quotes, so it looks like this (the braces have been removed to support the formatting for this page. You still need to use them in your actual commands.):
2424

25-
`"search_for_private_key"` becomes `\"search_for_private_key\"`
26-
etc
25+
```powershell
26+
chia rpc wallet create_new_wallet '{\"wallet_type\": \"nft_wallet\"}'
27+
```
2728

2829
</details>
2930

docs/rpc-reference/full-node.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,14 @@ This document will use Linux/MacOS RPC syntax. When running rpc commands on Wind
2626
For example, here is a typical RPC command on Linux and MacOS:
2727

2828
```powershell
29-
chia rpc full_node get_block '{"header_hash":"0xf42b4e77315d79ddfb3d64becb21e26ebff5408bda4d1b7c3782fd04f49ec0bb"}'
29+
chia rpc wallet create_new_wallet '{"wallet_type": "nft_wallet"}'
3030
```
3131

32-
To run the same command on Windows, you need to escape the quotes with backslashes. In other words, add a \ before each double quote, such that:
32+
To run the same command on Windows, you need to escape the quotes, so it looks like this (the braces have been removed to support the formatting for this page. You still need to use them in your actual commands.):
3333

34-
`"header_hash"` becomes `\"header_hash\"`
34+
```powershell
35+
chia rpc wallet create_new_wallet '{\"wallet_type\": \"nft_wallet\"}'
36+
```
3537

3638
</details>
3739

docs/rpc-reference/harvester.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@ This document will use Linux/MacOS RPC syntax. When running rpc commands on Wind
1717
For example, here is a typical RPC command on Linux and MacOS:
1818

1919
```powershell
20-
chia rpc harvester add_plot_directory '{"dirname": "C:\\plots"}'
20+
chia rpc wallet create_new_wallet '{"wallet_type": "nft_wallet"}'
2121
```
2222

23-
To run the same command on Windows, you need to escape the quotes with backslashes. In other words, add a \ before each double quote, such that:
23+
To run the same command on Windows, you need to escape the quotes, so it looks like this (the braces have been removed to support the formatting for this page. You still need to use them in your actual commands.):
2424

25-
`"dirname"` becomes `\"dirname\"`
26-
`"C:\\plots"` becomes `\"C:\\plots\"`
25+
```powershell
26+
chia rpc wallet create_new_wallet '{\"wallet_type\": \"nft_wallet\"}'
27+
```
2728

2829
</details>
2930

docs/rpc-reference/nfts.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ For example, here is a typical RPC command on Linux and MacOS:
1818
chia rpc wallet create_new_wallet '{"wallet_type": "nft_wallet"}'
1919
```
2020

21-
To run the same command on Windows, you need to escape the quotes with backslashes. In other words, add a \ before each double quote, such that:
21+
To run the same command on Windows, you need to escape the quotes, so it looks like this (the braces have been removed to support the formatting for this page. You still need to use them in your actual commands.):
2222

23-
`"fee"` becomes `\"fee\"`
24-
`"1000"` becomes `\"1000\"`
25-
etc
23+
```powershell
24+
chia rpc wallet create_new_wallet '{\"wallet_type\": \"nft_wallet\"}'
25+
```
2626

2727
</details>
2828

docs/rpc-reference/offers.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ For example, here is a typical RPC command on Linux and MacOS:
1818
chia rpc wallet create_new_wallet '{"wallet_type": "nft_wallet"}'
1919
```
2020

21-
To run the same command on Windows, you need to escape the quotes with backslashes. In other words, add a \ before each double quote, such that:
21+
To run the same command on Windows, you need to escape the quotes, so it looks like this (the braces have been removed to support the formatting for this page. You still need to use them in your actual commands.):
2222

23-
- `"wallet_type"` becomes `\"wallet_type\"`
24-
- `"nft_wallet"` becomes `\"nft_wallet\"`
25-
- etc
23+
```powershell
24+
chia rpc wallet create_new_wallet '{\"wallet_type\": \"nft_wallet\"}'
25+
```
2626

2727
</details>
2828

0 commit comments

Comments
 (0)