2019-05-20 13:29:00 +03:00
|
|
|
name: grin-wallet
|
|
|
|
about: Reference Grin Wallet
|
2019-02-13 18:05:19 +03:00
|
|
|
author: The Grin Team
|
|
|
|
|
|
|
|
args:
|
|
|
|
- floonet:
|
|
|
|
help: Run grin against the Floonet (as opposed to mainnet)
|
|
|
|
long: floonet
|
|
|
|
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
|
2019-02-13 19:39:34 +03:00
|
|
|
- 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
|
|
|
|
- data_dir:
|
|
|
|
help: Directory in which to store wallet files
|
|
|
|
short: dd
|
|
|
|
long: data_dir
|
|
|
|
takes_value: true
|
|
|
|
- external:
|
|
|
|
help: Listen on 0.0.0.0 interface to allow external connections (default is 127.0.0.1)
|
|
|
|
short: e
|
|
|
|
long: external
|
|
|
|
takes_value: false
|
|
|
|
- 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
|
2019-02-13 18:05:19 +03:00
|
|
|
subcommands:
|
2019-02-13 19:39:34 +03:00
|
|
|
- account:
|
|
|
|
about: List wallet accounts or create a new account
|
2019-02-13 18:05:19 +03:00
|
|
|
args:
|
2019-02-13 19:39:34 +03:00
|
|
|
- create:
|
|
|
|
help: Create a new wallet account with provided name
|
2019-02-13 18:05:19 +03:00
|
|
|
short: c
|
2019-02-13 19:39:34 +03:00
|
|
|
long: create
|
2019-02-13 18:05:19 +03:00
|
|
|
takes_value: true
|
2019-02-13 19:39:34 +03:00
|
|
|
- listen:
|
|
|
|
about: Runs the wallet in listening mode waiting for transactions
|
|
|
|
args:
|
2019-02-13 18:05:19 +03:00
|
|
|
- port:
|
2019-02-13 19:39:34 +03:00
|
|
|
help: Port on which to run the wallet listener
|
|
|
|
short: l
|
2019-02-13 18:05:19 +03:00
|
|
|
long: port
|
|
|
|
takes_value: true
|
2019-02-13 19:39:34 +03:00
|
|
|
- method:
|
|
|
|
help: Which method to use for communication
|
|
|
|
short: m
|
|
|
|
long: method
|
|
|
|
possible_values:
|
|
|
|
- http
|
|
|
|
- keybase
|
|
|
|
default_value: http
|
|
|
|
takes_value: true
|
2019-10-14 22:24:09 +03:00
|
|
|
- no_tor:
|
|
|
|
help: Don't start TOR listener when starting HTTP listener
|
|
|
|
short: n
|
|
|
|
long: no_tor
|
|
|
|
takes_value: false
|
2019-02-13 19:39:34 +03:00
|
|
|
- owner_api:
|
|
|
|
about: Runs the wallet's local web API
|
2019-08-19 15:05:21 +03:00
|
|
|
args:
|
|
|
|
- port:
|
|
|
|
help: Port on which to run the wallet owner listener
|
|
|
|
short: l
|
|
|
|
long: port
|
|
|
|
takes_value: true
|
2019-09-02 18:03:35 +03:00
|
|
|
- run_foreign:
|
|
|
|
help: Also run the Foreign API
|
|
|
|
long: run_foreign
|
|
|
|
takes_value: false
|
2019-02-13 19:39:34 +03:00
|
|
|
- send:
|
|
|
|
about: Builds a transaction to send coins and sends to the specified listener directly
|
|
|
|
args:
|
|
|
|
- amount:
|
|
|
|
help: Number of coins to send with optional fraction, e.g. 12.423
|
|
|
|
index: 1
|
|
|
|
- minimum_confirmations:
|
|
|
|
help: Minimum number of confirmations required for an output to be spendable
|
|
|
|
short: c
|
|
|
|
long: min_conf
|
|
|
|
default_value: "10"
|
2019-02-13 18:05:19 +03:00
|
|
|
takes_value: true
|
2019-02-13 19:39:34 +03:00
|
|
|
- selection_strategy:
|
|
|
|
help: Coin/Output selection strategy.
|
2019-02-13 18:05:19 +03:00
|
|
|
short: s
|
2019-02-13 19:39:34 +03:00
|
|
|
long: selection
|
|
|
|
possible_values:
|
|
|
|
- all
|
|
|
|
- smallest
|
2019-11-18 13:49:51 +03:00
|
|
|
default_value: smallest
|
2019-02-13 19:39:34 +03:00
|
|
|
takes_value: true
|
|
|
|
- estimate_selection_strategies:
|
|
|
|
help: Estimates all possible Coin/Output selection strategies.
|
|
|
|
short: e
|
|
|
|
long: estimate-selection
|
|
|
|
- change_outputs:
|
|
|
|
help: Number of change outputs to generate (mainly for testing)
|
|
|
|
short: o
|
|
|
|
long: change_outputs
|
|
|
|
default_value: "1"
|
2019-02-13 18:05:19 +03:00
|
|
|
takes_value: true
|
2019-02-13 19:39:34 +03:00
|
|
|
- method:
|
|
|
|
help: Method for sending this transaction
|
|
|
|
short: m
|
|
|
|
long: method
|
|
|
|
possible_values:
|
|
|
|
- http
|
|
|
|
- file
|
|
|
|
- self
|
|
|
|
- keybase
|
|
|
|
default_value: http
|
2019-02-13 18:05:19 +03:00
|
|
|
takes_value: true
|
2019-02-13 19:39:34 +03:00
|
|
|
- dest:
|
|
|
|
help: Send the transaction to the provided server (start with http://) or save as file.
|
|
|
|
short: d
|
|
|
|
long: dest
|
|
|
|
takes_value: true
|
2019-11-28 18:13:52 +03:00
|
|
|
- request_payment_proof:
|
|
|
|
help: Request a payment proof from the recipient. If sending to a tor address, the address will be filled automatically.
|
|
|
|
short: y
|
|
|
|
long: request_payment_proof
|
|
|
|
- proof_address:
|
|
|
|
help: Recipient proof address. If not using TOR, must be provided seprarately by the recipient
|
|
|
|
short: z
|
|
|
|
long: proof_address
|
|
|
|
takes_value: true
|
2019-02-13 19:39:34 +03:00
|
|
|
- fluff:
|
|
|
|
help: Fluff the transaction (ignore Dandelion relay protocol)
|
|
|
|
short: f
|
|
|
|
long: fluff
|
|
|
|
- message:
|
|
|
|
help: Optional participant message to include
|
|
|
|
short: g
|
|
|
|
long: message
|
|
|
|
takes_value: true
|
|
|
|
- stored_tx:
|
|
|
|
help: If present, use the previously stored Unconfirmed transaction with given id
|
|
|
|
short: t
|
|
|
|
long: stored_tx
|
|
|
|
takes_value: true
|
2019-03-12 19:48:14 +03:00
|
|
|
- slate_version:
|
|
|
|
help: Target slate version to output/send to receiver
|
|
|
|
short: v
|
|
|
|
long: slate_version
|
|
|
|
takes_value: true
|
2019-02-13 19:39:34 +03:00
|
|
|
- receive:
|
|
|
|
about: Processes a transaction file to accept a transfer from a sender
|
2019-02-13 18:05:19 +03:00
|
|
|
args:
|
2019-02-13 19:39:34 +03:00
|
|
|
- message:
|
|
|
|
help: Optional participant message to include
|
|
|
|
short: g
|
|
|
|
long: message
|
|
|
|
takes_value: true
|
|
|
|
- input:
|
|
|
|
help: Partial transaction to process, expects the sender's transaction file.
|
|
|
|
short: i
|
|
|
|
long: input
|
2019-02-13 18:05:19 +03:00
|
|
|
takes_value: true
|
2019-02-13 19:39:34 +03:00
|
|
|
- finalize:
|
|
|
|
about: Processes a receiver's transaction file to finalize a transfer.
|
|
|
|
args:
|
|
|
|
- input:
|
|
|
|
help: Partial transaction to process, expects the receiver's transaction file.
|
|
|
|
short: i
|
|
|
|
long: input
|
2019-02-13 18:05:19 +03:00
|
|
|
takes_value: true
|
2019-02-13 19:39:34 +03:00
|
|
|
- fluff:
|
|
|
|
help: Fluff the transaction (ignore Dandelion relay protocol)
|
|
|
|
short: f
|
|
|
|
long: fluff
|
2019-11-18 13:19:00 +03:00
|
|
|
- nopost:
|
|
|
|
help: Do not post the transaction.
|
|
|
|
short: n
|
|
|
|
long: nopost
|
|
|
|
- dest:
|
|
|
|
help: Specify file to save the finalized slate.
|
|
|
|
short: d
|
|
|
|
long: dest
|
|
|
|
takes_value: true
|
2019-05-09 21:06:32 +03:00
|
|
|
- invoice:
|
2019-09-02 18:03:35 +03:00
|
|
|
about: Initialize an invoice transaction.
|
2019-05-09 21:06:32 +03:00
|
|
|
args:
|
|
|
|
- amount:
|
|
|
|
help: Number of coins to invoice with optional fraction, e.g. 12.423
|
|
|
|
index: 1
|
|
|
|
- message:
|
|
|
|
help: Optional participant message to include
|
|
|
|
short: g
|
|
|
|
long: message
|
|
|
|
takes_value: true
|
|
|
|
- slate_version:
|
|
|
|
help: Target slate version to output/send to receiver
|
|
|
|
short: v
|
|
|
|
long: slate_version
|
|
|
|
takes_value: true
|
|
|
|
- dest:
|
|
|
|
help: Name of destination slate output file
|
|
|
|
short: d
|
|
|
|
long: dest
|
|
|
|
takes_value: true
|
|
|
|
- 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: all
|
|
|
|
takes_value: true
|
|
|
|
- estimate_selection_strategies:
|
|
|
|
help: Estimates all possible Coin/Output selection strategies.
|
|
|
|
short: e
|
|
|
|
long: estimate-selection
|
|
|
|
- method:
|
|
|
|
help: Method for sending the processed invoice back to the invoice creator
|
|
|
|
short: m
|
|
|
|
long: method
|
|
|
|
possible_values:
|
|
|
|
- file
|
|
|
|
- http
|
|
|
|
- self
|
|
|
|
default_value: file
|
|
|
|
takes_value: true
|
|
|
|
- dest:
|
|
|
|
help: Send the transaction to the provided server (start with http://) or save as file.
|
|
|
|
short: d
|
|
|
|
long: dest
|
|
|
|
takes_value: true
|
|
|
|
- message:
|
|
|
|
help: Optional participant message to include
|
|
|
|
short: g
|
|
|
|
long: message
|
|
|
|
takes_value: true
|
|
|
|
- input:
|
|
|
|
help: Partial transaction to process, expects the invoicer's transaction file.
|
|
|
|
short: i
|
|
|
|
long: input
|
|
|
|
takes_value: true
|
2019-02-13 19:39:34 +03:00
|
|
|
- outputs:
|
2019-04-25 09:59:45 +03:00
|
|
|
about: Raw wallet output info (list of outputs)
|
2019-02-13 19:39:34 +03:00
|
|
|
- txs:
|
|
|
|
about: Display transaction information
|
|
|
|
args:
|
|
|
|
- id:
|
|
|
|
help: If specified, display transaction with given Id and all associated Inputs/Outputs
|
|
|
|
short: i
|
|
|
|
long: id
|
2019-02-13 18:05:19 +03:00
|
|
|
takes_value: true
|
2019-07-08 11:43:56 +03:00
|
|
|
- txid:
|
|
|
|
help: If specified, display transaction with given TxID UUID and all associated Inputs/Outputs
|
|
|
|
short: t
|
|
|
|
long: txid
|
|
|
|
takes_value: true
|
2019-11-18 13:19:00 +03:00
|
|
|
- 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
|
2019-02-13 19:39:34 +03:00
|
|
|
- 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:
|
2019-09-02 18:03:35 +03:00
|
|
|
about: Cancels a previously created transaction, freeing previously locked outputs for use again
|
2019-02-13 19:39:34 +03:00
|
|
|
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
|
2019-02-13 18:05:19 +03:00
|
|
|
takes_value: false
|
2019-02-13 19:39:34 +03:00
|
|
|
- short_wordlist:
|
|
|
|
help: Generate a 12-word recovery phrase/seed instead of default 24
|
2019-02-13 18:05:19 +03:00
|
|
|
short: s
|
2019-02-13 19:39:34 +03:00
|
|
|
long: short_wordlist
|
2019-02-13 18:05:19 +03:00
|
|
|
takes_value: false
|
|
|
|
- recover:
|
2019-02-13 19:39:34 +03:00
|
|
|
help: Initialize new wallet using a recovery phrase
|
|
|
|
short: r
|
|
|
|
long: recover
|
|
|
|
takes_value: false
|
|
|
|
- recover:
|
2019-12-03 11:45:36 +03:00
|
|
|
about: Displays a recovery phrase for the wallet. (use `init -r` to perform recovery)
|
2019-11-28 18:13:52 +03:00
|
|
|
- address:
|
|
|
|
about: Display the wallet's payment proof address
|
2019-11-06 13:04:42 +03:00
|
|
|
- scan:
|
2019-02-13 19:39:34 +03:00
|
|
|
about: Checks a wallet's outputs against a live node, repairing and restoring missing outputs if required
|
2019-03-07 19:19:47 +03:00
|
|
|
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
|
2019-11-06 13:04:42 +03:00
|
|
|
- start_height:
|
|
|
|
help: If given, the first block from which to start the scan (default 1)
|
|
|
|
short: h
|
|
|
|
long: start_height
|
|
|
|
default_value: "1"
|
|
|
|
takes_value: true
|