@@ -75,6 +75,12 @@ Enable a specific mode.
75
75
MyTonCtrl> enable_mode < mode_name>
76
76
```
77
77
78
+ Example:
79
+
80
+ ``` bash
81
+ MyTonCtrl> enable_mode validator
82
+ ```
83
+
78
84
### disable_mode
79
85
80
86
Disable a specific mode.
@@ -83,6 +89,12 @@ Disable a specific mode.
83
89
MyTonCtrl> disable_mode < mode_name>
84
90
```
85
91
92
+ Example:
93
+
94
+ ``` bash
95
+ MyTonCtrl> disable_mode validator
96
+ ```
97
+
86
98
### about
87
99
88
100
Provide a description of the specified mode
@@ -91,12 +103,24 @@ Provide a description of the specified mode
91
103
MyTonCtrl> about < mode_name>
92
104
```
93
105
106
+ Example:
107
+
108
+ ``` bash
109
+ MyTonCtrl> about validator
110
+ ```
111
+
94
112
### get
95
113
96
114
Get the value of a specific setting in JSON format
97
115
98
116
``` bash
99
- MyTonCtrl> setting < setting_name>
117
+ MyTonCtrl> get < setting_name>
118
+ ```
119
+
120
+ Example:
121
+
122
+ ``` bash
123
+ MyTonCtrl> get stake
100
124
```
101
125
102
126
### set
@@ -107,16 +131,28 @@ Set the specified value of a specified setting. Skip setting existence checking
107
131
MyTonCtrl> set < setting> < value> [--force]
108
132
```
109
133
134
+ Example:
135
+
136
+ ``` bash
137
+ MyTonCtrl> set stake 9000
138
+ ```
139
+
110
140
### rollback
111
141
112
- No args, rollback to mytonctrl 1.0.
142
+ No args, rollback to mytonctrl 1.0. You shouldn't use mytonctrl 1.0 in any case.
113
143
114
144
### getconfig
115
145
116
146
Retrieves and prints the JSON representation of the configuration specified by ` <config-id> `
117
147
118
148
``` bash
119
- MyTonCtrl> getconfig < config_id>
149
+ MyTonCtrl> getconfig < config_id> # config id can be omitted
150
+ ```
151
+
152
+ Example:
153
+
154
+ ``` bash
155
+ MyTonCtrl> getconfig 0
120
156
```
121
157
122
158
### get_pool_data
@@ -127,8 +163,16 @@ Retrieves and prints the JSON representation of the pool data specified by `<poo
127
163
MyTonCtrl> get_pool_data << pool-name> | <pool-addr>>
128
164
` ` `
129
165
166
+ Example:
167
+
168
+ ` ` ` bash
169
+ get_pool_data pool_name # you can check possible pool names using ls /home/install_mytonctrl/.local/share/mytoncore/pools
170
+ ` ` `
171
+
130
172
# # Overlays
131
173
174
+ Read more about [overlays here](/participate/network-maintenance/custom-overlays).
175
+
132
176
# ## add_custom_overlay
133
177
134
178
Adds a custom overlay with the given ` <name>` using the configuration specified by ` <path_to_config>`
@@ -137,6 +181,12 @@ Adds a custom overlay with the given `<name>` using the configuration specified
137
181
MyTonCtrl> add_custom_overlay <name> <path_to_config>
138
182
` ` `
139
183
184
+ Example:
185
+
186
+ ` ` ` bash
187
+ add_custom_overlay custom /config.json # check link from above to know what config this command requires (https://docs.ton.org/participate/network-maintenance/custom-overlays)
188
+ ` ` `
189
+
140
190
# ## list_custom_overlays
141
191
142
192
No args, prints custom overlays
@@ -156,7 +206,7 @@ MyTonCtrl> delete_custom_overlay <name>
156
206
Votes for the offer specified by ` <offer-hash>`
157
207
158
208
` ` ` bash
159
- MyTonCtrl> vo <offer-hash>
209
+ MyTonCtrl> vo <offer-hash> # use ` ol ` to get offers
160
210
` ` `
161
211
162
212
# ## ve
@@ -168,11 +218,19 @@ No args, vote for election
168
218
Votes for the complaint specified by `<complaint-hash>` in the election specified by ` < election-id> `
169
219
170
220
` ` ` bash
171
- MyTonCtrl> vc << election-id>, <complaint-hash>>
221
+ MyTonCtrl> vc < election-id> < complaint-hash>
222
+ ` ` `
223
+
224
+ Actually, even this will work, but you should use data from your current mytonctrl state:
225
+
226
+ ` ` ` bash
227
+ MyTonCtrl> vc 0 0
172
228
` ` `
173
229
174
230
# # Pool commands
175
231
232
+ Get more information [at nominator pool page](/participate/network-maintenance/nominator-pool).
233
+
176
234
# ## deposit_to_pool
177
235
178
236
Deposits the specified ` < amount> ` to the pool specified by ` < pool-addr> `
@@ -181,6 +239,12 @@ Deposits the specified `<amount>` to the pool specified by `<pool-addr>`
181
239
MyTonCtrl> deposit_to_pool < pool-addr> < amount>
182
240
` ` `
183
241
242
+ Example:
243
+
244
+ ` ` ` bash
245
+ MyTonCtrl> deposit_to_pool kf_JcC5pn3etTAdwOnc16_tyMmKE8-ftNUnf0OnUjAIdDJpX 1
246
+ ` ` `
247
+
184
248
# ## withdraw_from_pool
185
249
186
250
Withdraws the specified ` < amount> ` from the pool specified by ` < pool-addr> `
@@ -189,6 +253,12 @@ Withdraws the specified `<amount>` from the pool specified by `<pool-addr>`
189
253
MyTonCtrl> withdraw_from_pool < pool-addr> < amount>
190
254
` ` `
191
255
256
+ Example:
257
+
258
+ ` ` ` bash
259
+ MyTonCtrl> withdraw_from_pool kf_JcC5pn3etTAdwOnc16_tyMmKE8-ftNUnf0OnUjAIdDJpX 1
260
+ ` ` `
261
+
192
262
# ## cleanup
193
263
194
264
No args, cleanup validator database
@@ -199,6 +269,8 @@ No args, prints table with several tests
199
269
200
270
# # Single pool
201
271
272
+ Get more information [at single nominator pool page](/participate/network-maintenance/nominator-pool).
273
+
202
274
# ## new_single_pool
203
275
204
276
Creates a new single pool with the specified ` < pool-name> ` and ` < owner-address> `
@@ -207,12 +279,18 @@ Creates a new single pool with the specified `<pool-name>` and `<owner-address>`
207
279
MyTonCtrl> new_single_pool < pool-name> < owner-address>
208
280
` ` `
209
281
282
+ Example:
283
+
284
+ ` ` ` bash
285
+ MyTonCtrl> new_single_pool name kf9tZrL46Xjux3ZqvQFSgQkOIlteJK52slSYWbasqtOjrKUT
286
+ ` ` `
287
+
210
288
# ## activate_single_pool
211
289
212
290
Activates the single pool specified by ` < pool-name> `
213
291
214
292
` ` ` bash
215
- MyTonCtrl> activate_single_pool <pool-name>
293
+ MyTonCtrl> activate_single_pool < pool-name> # pool name from above
216
294
` ` `
217
295
218
296
# # Wallet management
@@ -231,6 +309,11 @@ MyTonCtrl> iw <wallet-addr> <wallet-secret-key>
231
309
232
310
Here, ` < wallet-secret-key> ` is your private key in base64 format.
233
311
312
+ Example:
313
+
314
+ ` ` ` bash
315
+ MyTonCtrl> iw kf9tZrL46Xjux3ZqvQFSgQkOIlteJK52slSYWbasqtOjrKUT AAAH++/ve+/vXrvv73vv73vv73vv71DWu+/vWcpA1E777+92Ijvv73vv70iV++/ve+/vUTvv70d77+9UFjvv71277+9bO+/ve+/vXgzdzzvv71i77+977+9CjLvv73vv73vv71i77+9Bu+/vV0oJe+/ve+/vUPvv73vv73vv70=
316
+ ` ` `
234
317
# ### Importing Using a Mnemonic Phrase
235
318
236
319
If you have a mnemonic phrase (a sequence of 24 words like ` tattoo during ...` ), follow these steps:
@@ -270,9 +353,15 @@ Also you can create new empty wallet:
270
353
MyTonCtrl> nw < workchain-id> < wallet-name> [< version> < subwallet> ]
271
354
` ` `
272
355
356
+ Example:
357
+
358
+ ` ` ` bash
359
+ MyTonCtrl> nw 0 name v3 # by default subwallet is 0x29A9A317 + workchain
360
+ ` ` `
361
+
273
362
# ## Activate a local wallet
274
363
275
- If you want to use wallet it have to be activated:
364
+ If you want to use wallet, it has to be activated:
276
365
277
366
` ` ` bash
278
367
MyTonCtrl> aw < wallet-name>
@@ -317,6 +406,12 @@ This command is needed when a modified wallet with interaction methods similar t
317
406
MyTonCtrl> swv < wallet-addr> < wallet-version>
318
407
` ` `
319
408
409
+ Example:
410
+
411
+ ` ` ` bash
412
+ MyTonCtrl> swv kf9tZrL46Xjux3ZqvQFSgQkOIlteJK52slSYWbasqtOjrKUT v3
413
+ ` ` `
414
+
320
415
# ## Export a wallet
321
416
322
417
It' s possible to get a certain wallet address and secret key.
@@ -343,7 +438,7 @@ MyTonCtrl> dw <wallet-name>
343
438
To check account status and its transaction history use the following command:
344
439
345
440
```bash
346
- MyTonCtrl> vas <account-addr>
441
+ MyTonCtrl> vas <account-addr> # for example you can get address of validator wallet by wl command and use vas to get more information
347
442
```
348
443
349
444

@@ -353,7 +448,7 @@ MyTonCtrl> vas <account-addr>
353
448
To check account transaction history use the following command using the number of listed operations as `limit`:
354
449
355
450
```bash
356
- MyTonCtrl> vah <account-addr> <limit>
451
+ MyTonCtrl> vah <account-addr> <limit> # limit is just unsigned integer number
357
452
```
358
453
359
454

@@ -366,6 +461,12 @@ Transfer coins from local wallet to an account:
366
461
MyTonCtrl> mg <wallet-name> <account-addr | bookmark-name> <amount>
367
462
```
368
463
464
+ Example:
465
+
466
+ ```bash
467
+ MyTonCtrl> mg wallet_004 kQBxnZJq4oHVFs4ban3kJ5qllM1IQo57lIx8QP69Ue9A6Psp 1
468
+ ```
469
+
369
470
:::caution
370
471
Wallet version ' v4' is not supported for the transfering
371
472
:::
@@ -378,6 +479,12 @@ Transfer coins from local wallet to an account through a proxy:
378
479
MyTonCtrl> mgtp <wallet-name> <account-addr | bookmark-name> <amount>
379
480
```
380
481
482
+ Example:
483
+
484
+ ```bash
485
+ MyTonCtrl> mgtp wallet_004 kQBxnZJq4oHVFs4ban3kJ5qllM1IQo57lIx8QP69Ue9A6Psp 1
486
+ ```
487
+
381
488
## General Pools Commands
382
489
383
490
There are two types of pools in **MyTonCtrl**:
@@ -409,6 +516,12 @@ You can create already created pool to the list of local pools:
409
516
MyTonCtrl> import_pool <pool-name> <pool-addr>
410
517
```
411
518
519
+ Example:
520
+
521
+ ```bash
522
+ MyTonCtrl> import_pool name kf_JcC5pn3etTAdwOnc16_tyMmKE8-ftNUnf0OnUjAIdDJpX
523
+ ```
524
+
412
525
## Bookmarks
413
526
414
527
You can create an alias (bookmark) for an account address to simplify it usage.
@@ -559,6 +672,12 @@ Possible arguments:
559
672
| `state-ttl` | ttl of blockchain states that node keep | 3600 |
560
673
| `archive-ttl` | ttl of blocks node stores. _To force node not to store archive blocks use the value `86400`_ | 2592000 if liteserver mode was enabled during installation process, otherwise 86400 |
561
674
675
+ Example:
676
+
677
+ ```bash
678
+ MyTonInstaller> set_node_argument --state-ttl 3601
679
+ ```
680
+
562
681
### enable
563
682
564
683
Enable one of the modes, for `ton-http-api` creates config
@@ -577,10 +696,20 @@ Modes can have following names:
577
696
- LSP - ls proxy
578
697
- TSP - TON storage + TON storage provider
579
698
699
+ Example:
700
+
701
+ ```bash
702
+ MyTonInstaller> enable FN
703
+ ```
704
+
580
705
### update
581
706
582
707
Same as `enable` of mytoninstaller
583
708
709
+ ```bash
710
+ MyTonInstaller> update FN
711
+ ```
712
+
584
713
### plsc
585
714
586
715
Print liteserver config
@@ -615,7 +744,7 @@ Dangerous recovery validator config file
615
744
616
745
### setwebpass
617
746
618
- Set a password for the web admin interface, runs `python3 /usr/src/mtc-jsonrpc/mtc-jsonrpc.py -p`.
747
+ No args. Set a password for the web admin interface, runs `python3 /usr/src/mtc-jsonrpc/mtc-jsonrpc.py -p`.
619
748
620
749
## See Also
621
750
0 commit comments