addrimport.py 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #!/usr/bin/env python3
  2. #
  3. # MMGen Wallet, a terminal-based cryptocurrency wallet
  4. # Copyright (C)2013-2026 The MMGen Project <mmgen@tuta.io>
  5. # Licensed under the GNU General Public License, Version 3:
  6. # https://www.gnu.org/licenses
  7. # Public project repositories:
  8. # https://github.com/mmgen/mmgen-wallet
  9. # https://gitlab.com/mmgen/mmgen-wallet
  10. """
  11. help.addrimport: addrimport help notes for the MMGen Wallet suite
  12. """
  13. def help(proto, cfg):
  14. match proto.base_proto:
  15. case 'Bitcoin':
  16. return """
  17. Rescanning now uses the ‘scantxoutset’ RPC call and a selective scan of
  18. blocks containing the relevant UTXOs for much faster performance than the
  19. previous implementation. The rescan operation typically takes around two
  20. minutes total, independent of the number of addresses imported.
  21. It’s recommended to use ‘--rpc-backend=aio’ with ‘--rescan’.
  22. Bear in mind that the UTXO scan will not find historical transactions: to add
  23. them to the tracking wallet, you must perform a full or partial rescan of the
  24. blockchain with the ‘mmgen-tool rescan_blockchain’ utility. A full rescan of
  25. the blockchain may take up to several hours.
  26. A full rescan is required if you plan to use ‘mmgen-tool txhist’ or the
  27. automatic change address functionality of ‘mmgen-txcreate’, or wish to see
  28. which addresses in your tracking wallet are used. Without it, all addresses
  29. without balances will be displayed as new."""
  30. case 'Monero':
  31. return """
  32. For Monero, --autosign is required, and a key-address file on the removable
  33. device is used instead of a user-specified address file as with other coins.
  34. When ‘mmgen-autosign setup’ (or ‘xmr_setup’) is run with the --xmrwallets
  35. option, an ephemeral Monero wallet is created for each wallet number listed,
  36. to be used for transaction signing. In addition, a key-address file is created
  37. on the removable device, with an address and viewkey matching the base address
  38. of each signing wallet.
  39. This script uses that file to create an online view-only Monero wallet to
  40. match each offline signing wallet. The set of view-only wallets currently
  41. configured via --xmrwallets comprises the user’s tracking wallet.
  42. If a view-only wallet for a given address already exists, it’s left untouched
  43. and no action is performed. To add view-only wallets to your tracking wallet,
  44. just specify additional wallet indexes via --xmrwallets during the offline
  45. setup process."""
  46. case _:
  47. return ''