grin_wallet 5.4.1

Simple, private and scalable cryptocurrency implementation based on the MimbleWimble chain format.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
name: grin-wallet
about: Reference Grin Wallet
author: The Grin Team

args:
  - testnet:
      help: Run grin against the Testnet (as opposed to mainnet)
      long: testnet
      takes_value: false
  - usernet:
      help: Run grin as a local-only network. Doesn't block peer connections but will not connect to any peer or seed
      long: usernet
      takes_value: false
  - pass:
      help: Wallet passphrase used to encrypt wallet seed
      short: p
      long: pass
      takes_value: true
  - account:
      help: Wallet account to use for this operation
      short: a
      long: account
      takes_value: true
      default_value: default
  - top_level_dir:
      help: Top directory in which wallet files are stored (location of 'grin-wallet.toml')
      short: t
      long: top_level_dir
      takes_value: true
  - show_spent:
      help: Show spent outputs on wallet output commands
      short: s
      long: show_spent
      takes_value: false
  - api_server_address:
      help: Api address of running node on which to check inputs and post transactions
      short: r
      long: api_server_address
      takes_value: true
subcommands:
  - cli:
      about: Start the wallet in interactive CLI mode (EXPERIMENTAL and UNDER DEVELOPMENT)
  - account:
      about: List wallet accounts or create a new account
      args:
        - create:
            help: Create a new wallet account with provided name
            short: c
            long: create
            takes_value: true
  - rewind_hash:
      about: Return the hash of the wallet root public key.
  - scan_rewind_hash:
      about: Scan the UTXO set and return the outputs and the total of grin owned by a view wallet rewind hash.
      args:
        - rewind_hash:
              help: Rewind hash of the wallet to be scanned in order to retrieve all the outputs and balance.
              index: 1
        - start_height:
            help: If given, the first block from which to start the scan (default 1)
            short: h
            long: start_height
            takes_value: true
        - backwards_from_tip:
            help: If given, start scan b blocks back from the tip
            short: b
            long: backwards_from_tip,
            takes_value: true
  - listen:
      about: Runs the wallet in listening mode waiting for transactions
      args:
        - port:
            help: Port on which to run the wallet listener
            short: l
            long: port
            takes_value: true
        - no_tor:
            help: Don't start Tor listener when starting HTTP listener
            short: n
            long: no_tor
            takes_value: false
        - bridge:
            help: Enable bridge relay with TOR listener
            short: g
            long: bridge
            takes_value: true
  - owner_api:
      about: Runs the wallet's local web API
      args:
        - port:
            help: Port on which to run the wallet owner listener
            short: l
            long: port
            takes_value: true
        - run_foreign:
            help: Also run the Foreign API
            long: run_foreign
            takes_value: false
  - send:
      about: Builds a transaction to send coins and sends to the recipient via the Slatepack workflow
      args:
        - amount:
            help: Number of coins to send with optional fraction, e.g. 12.423. Keyword 'max' will send maximum amount.
            index: 1
        - minimum_confirmations:
            help: Minimum number of confirmations required for an output to be spendable
            short: c
            long: min_conf
            default_value: "10"
            takes_value: true
        - selection_strategy:
            help: Coin/Output selection strategy.
            short: s
            long: selection
            possible_values:
              - all
              - smallest
            default_value: smallest
            takes_value: true
        - estimate_selection_strategies:
            help: Estimates all possible Coin/Output selection strategies.
            short: e
            long: estimate-selection
        - late_lock:
            help: EXPERIMENTAL - Do not lock the coins immediately, instead only lock them during finalization.
            short: l
            long: late-lock
        - change_outputs:
            help: Number of change outputs to generate (mainly for testing)
            short: o
            long: change_outputs
            default_value: "1"
            takes_value: true
        - dest:
            help: Intended recipient's Slatepack Address (or http listener address (DEPRECATED))
            short: d
            long: dest
            takes_value: true
        - no_payment_proof:
            help: Don't request a payment proof, even if the Recipient's Slatepack address is provided in the -dest argument
            short: n
            long: no_payment_proof
        - fluff:
            help: Fluff the transaction (ignore Dandelion relay protocol)
            short: f
            long: fluff
        - stored_tx:
            help: If present, use the previously stored Unconfirmed transaction with given id
            short: t
            long: stored_tx
            takes_value: true
        - ttl_blocks:
            help: If present, the number of blocks from the current after which wallets should refuse to process transactions further
            short: b
            long: ttl_blocks
            takes_value: true
        - manual:
            help: If present, don't attempt to send the resulting Slatepack via TOR
            short: m
            long: manual
        - outfile:
            help: If present, overrides the filename and location of the output Slatepack file.
            short: u
            long: outfile
            takes_value: true
        - bridge:
            help: Enable tor bridge relay when sending via Slatepack workflow
            short: g
            long: bridge
            takes_value: true
        - slatepack_qr:
            help: Show slatepack data as QR code
            short: q
            long: slatepack_qr
        - amount_includes_fee:
            help: Transaction amount includes transaction fee. Recipient will receive (amount - fee).
            long: amount_includes_fee
  - unpack:
      about: Unpack and display an armored Slatepack Message, decrypting if possible
      args:
        - input:
            help: File containing a Slatepack Message
            short: i
            long: input
            takes_value: true
  - receive:
      about: Processes a Slatepack Message to accept a transfer from a sender
      args:
        - input:
            help: File containing a Slatepack Message
            short: i
            long: input
            takes_value: true
        - manual:
            help: If present, don't attempt to send the resulting Slatepack via TOR
            short: m
            long: manual
        - outfile:
            help: If present, overrides the filename and location of the output Slatepack file.
            short: u
            long: outfile
            takes_value: true
        - bridge:
            help: Enable tor bridge relay when receiving via Slatepack workflow
            short: g
            long: bridge
            takes_value: true
        - slatepack_qr:
            help: Show slatepack data as QR code
            short: q
            long: slatepack_qr
  - finalize:
      about: Processes a Slatepack Message to finalize a transfer.
      args:
        - input:
            help: Partial transaction to process, expects the receiver's transaction file.
            short: i
            long: input
            takes_value: true
        - fluff:
            help: Fluff the transaction (ignore Dandelion relay protocol)
            short: f
            long: fluff
        - nopost:
            help: Do not post the transaction.
            short: n
            long: nopost
        - outfile:
            help: If present, overrides the filename and location of the output Slatepack file.
            short: u
            long: outfile
            takes_value: true
        - slatepack_qr:
            help: Show slatepack data as QR code
            short: q
            long: slatepack_qr
  - invoice:
      about: Initialize an invoice transaction, outputting a Slatepack Message with the result
      args:
        - amount:
            help: Number of coins to invoice  with optional fraction, e.g. 12.423
            index: 1
        - dest:
            help: Intended recipient's Slatepack Address
            short: d
            long: dest
            takes_value: true
        - outfile:
            help: If present, overrides the filename and location of the output Slatepack file.
            short: u
            long: outfile
            takes_value: true
        - slatepack_qr:
            help: Show slatepack data as QR code
            short: q
            long: slatepack_qr
  - pay:
      about: Spend coins to pay the provided invoice transaction
      args:
        - minimum_confirmations:
            help: Minimum number of confirmations required for an output to be spendable
            short: c
            long: min_conf
            default_value: "10"
            takes_value: true
        - selection_strategy:
            help: Coin/Output selection strategy.
            short: s
            long: selection
            possible_values:
              - all
              - smallest
            default_value: smallest
            takes_value: true
        - estimate_selection_strategies:
            help: Estimates all possible Coin/Output selection strategies.
            short: e
            long: estimate-selection
        - dest:
            help: The Slatepack address of the invoicing party's wallet (will override the address contained in the Slatepack)
            short: d
            long: dest
            takes_value: true
        - input:
            help: Incoming Slatepack Message to process
            short: i
            long: input
            takes_value: true
        - ttl_blocks:
            help: If present, the number of blocks from the current after which wallets should refuse to process transactions further
            short: b
            long: ttl_blocks
            takes_value: true
        - manual:
            help: If present, don't attempt to send the resulting Slatepack via TOR
            short: m
            long: manual
        - outfile:
            help: If present, overrides the filename and location of the output Slatepack file.
            short: u
            long: outfile
            takes_value: true
        - bridge:
            help: Enable tor bridge relay when paying invoice.
            short: g
            long: bridge
            takes_value: true
        - slatepack_qr:
            help: Show slatepack data as QR code
            short: q
            long: slatepack_qr
  - outputs:
      about: Raw wallet output info (list of outputs)
  - txs:
      about: Display transaction information
      args:
        - id:
            help: If specified, display transaction with given Id and all associated Inputs/Outputs
            short: i
            long: id
            takes_value: true
        - txid:
            help: If specified, display transaction with given TxID UUID and all associated Inputs/Outputs
            short: t
            long: txid
            takes_value: true
        - count:
            help: Maximum number of transactions to show
            short: c
            long: count
            takes_value: true
  - post:
      about: Posts a finalized transaction to the chain
      args:
        - input:
            help: File name of the transaction to post
            short: i
            long: input
            takes_value: true
        - fluff:
            help: Fluff the transaction (ignore Dandelion relay protocol)
            short: f
            long: fluff
  - repost:
      about: Reposts a stored, completed but unconfirmed transaction to the chain, or dumps it to a file
      args:
        - id:
            help: Transaction ID containing the stored completed transaction
            short: i
            long: id
            takes_value: true
        - dumpfile:
            help: File name to duMp the transaction to instead of posting
            short: m
            long: dumpfile
            takes_value: true
        - fluff:
            help: Fluff the transaction (ignore Dandelion relay protocol)
            short: f
            long: fluff
  - cancel:
      about: Cancels a previously created transaction, freeing previously locked outputs for use again
      args:
        - id:
            help: The ID of the transaction to cancel
            short: i
            long: id
            takes_value: true
        - txid:
            help: The TxID UUID of the transaction to cancel
            short: t
            long: txid
            takes_value: true
  - info:
      about: Basic wallet contents summary
      args:
        - minimum_confirmations:
            help: Minimum number of confirmations required for an output to be spendable
            short: c
            long: min_conf
            default_value: "10"
            takes_value: true
  - init:
      about: Initialize a new wallet seed file and database
      args:
        - here:
            help: Create wallet files in the current directory instead of the default ~/.grin directory
            short: h
            long: here
            takes_value: false
        - short_wordlist:
            help: Generate a 12-word recovery phrase/seed instead of default 24
            short: s
            long: short_wordlist
            takes_value: false
        - recover:
            help: Initialize new wallet using a recovery phrase
            short: r
            long: recover
            takes_value: false
  - open:
      about: Opens a wallet (interactive mode only)
  - close:
      about: Closes the wallet (interactive mode only)
  - recover:
      about: Displays a recovery phrase for the wallet. (use `init -r` to perform recovery)
  - address:
      about: Display the wallet's Slatepack address
  - scan:
      about: Checks a wallet's outputs against a live node, repairing and restoring missing outputs if required
      args:
        - delete_unconfirmed:
            help: Delete any unconfirmed outputsm unlock any locked outputs and delete associated transactions while doing the check.
            short: d
            long: delete_unconfirmed
            takes_value: false
        - start_height:
            help: If given, the first block from which to start the scan (default 1)
            short: h
            long: start_height
            takes_value: true
        - backwards_from_tip:
            help: If given, start scan b blocks back from the tip
            short: b
            long: backwards_from_tip,
            takes_value: true
  - export_proof:
      about: Export a payment proof from a completed transaction
      args:
          - output:
              help: Output proof file
              index: 1
          - id:
              help: If specified, retrieve the proof for the given transaction ID
              short: i
              long: id
              takes_value: true
          - txid:
              help: If specified, retrieve the proof for the given Slate ID
              short: t
              long: txid
              takes_value: true
  - verify_proof:
      about: Verify a payment proof
      args:
          - input:
              help: Filename of a proof file
              index: 1