{"id":16337536,"url":"https://github.com/hendi/grin-multi-wallet-scripts","last_synced_at":"2025-10-17T04:57:39.133Z","repository":{"id":189956303,"uuid":"221189628","full_name":"hendi/grin-multi-wallet-scripts","owner":"hendi","description":null,"archived":false,"fork":false,"pushed_at":"2019-11-12T10:21:57.000Z","size":4,"stargazers_count":7,"open_issues_count":1,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-17T18:50:33.078Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hendi.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-11-12T10:21:05.000Z","updated_at":"2021-06-13T23:55:09.000Z","dependencies_parsed_at":"2023-08-22T17:24:08.485Z","dependency_job_id":null,"html_url":"https://github.com/hendi/grin-multi-wallet-scripts","commit_stats":null,"previous_names":["hendi/grin-multi-wallet-scripts"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hendi/grin-multi-wallet-scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hendi%2Fgrin-multi-wallet-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hendi%2Fgrin-multi-wallet-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hendi%2Fgrin-multi-wallet-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hendi%2Fgrin-multi-wallet-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hendi","download_url":"https://codeload.github.com/hendi/grin-multi-wallet-scripts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hendi%2Fgrin-multi-wallet-scripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279285971,"owners_count":26140331,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-17T02:00:07.504Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T23:47:19.646Z","updated_at":"2025-10-17T04:57:39.083Z","avatar_url":"https://github.com/hendi.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"GRIN multi-wallet scripts\n=========================\n\nThis is a set of scripts that can be used to transfer a number of\nGRINs from one main wallet to a configurable number of smaller\nwallets.\n\nThese scripts use tcl and expect, so install it with ``apt install\nexpect``. They expect ``grin-wallet`` to be in the PATH.\n\n\nIncluded scripts\n----------------\n\n1. generate_wallets.sh\n^^^^^^^^^^^^^^^^^^^^^^\n\nEdit the script and set ``numwallets`` and ``walletprefix`` to your\nliking. Running the script generates several folders in the current\ndirectory, one for each wallet generated. It outputs the names of the\nwallets created (e.g. ``my_1``, ``my_2``, etc.) together with their\n24-word seed phrase.\n\nCaution: the created wallets are _not_ password protected. You should\ndestroy them immediately after calling the third script (receive_txs)\nand keep the seed phrases in a secure place.\n\n\n2. create_txs.sh\n^^^^^^^^^^^^^^^^\nYour main wallet (containing the funds to split/send to the previously\ngenerated wallets) needs to be in the same directory as the generated\nwallets and this script. Set ``senderwallet`` and ``senderpassword``\naccordingly. ``amount`` is the amount to send to each wallet in GRIN\n(i.e. not multiplied by 1e9) and ``numwallets`` and ``walletprefix``\nshould match your previous settings.\n\nThis script first sends 0.1 GRIN to itself and creates ``numwallets +\n1`` change outputs. This means that after waiting ~10 minutes so the\ntx-to-self got confirmed, the remaining ``numwallets`` transaction can\nall happen at once.\n\nAfter running this script you'll have a ``.tx`` file for each wallet\n(e.g. ``my_1.tx``, ``my_2.tx``, etc.)\n\n\n3. receive_txs.sh\n^^^^^^^^^^^^^^^^^\nThis scripts looks for all ``.tx`` files in the current directory, and\nif it finds a matching wallet imports (``receive`` in grin\nterminology) it. The output is a ``.tx.response`` file for each\ntransaction.\n\n\n4. finalize_txs.sh\n^^^^^^^^^^^^^^^^^^\nSet ``senderwallet`` and ``senderpassword`` like in step 2. This\nscript looks for all ``.tx.response`` files in the current directory\nand finalizes the transactions from the main wallet.\n\n\nFAQ\n---\n\nWhy?\n^^^^\nWhen you sell coins in Germany, you don't pay any taxes on the sale\n(and profit) if you've held the coins for at least a year. Given that\ntransactions in grin are private and just the utxo set is stored, this\nmight be hard to prove. With this script, you can create several \"GRIN\nstashes\", then wait a year, and have a single utxo from a year ago if\nyou recover the wallet via its seed.\n\nThere are probably other use cases as well, e.g. gifting a bunch GRIN,\nor creating physical GRIN-coins :-)\n\n\nWhy tcl?\n^^^^^^^^\n``expect`` is a great tool for scripting interactive command line\ntools (go check it out); also I've fallen in love with tcl while using\nEDA tools like Cadence.\n\n\nWhy the .sh extension?!\n^^^^^^^^^^^^^^^^^^^^^^^\nIt's ``.sh`` to indicate it should be run from a terminal... I know\n¯\\\\_(ツ)_/¯\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhendi%2Fgrin-multi-wallet-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhendi%2Fgrin-multi-wallet-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhendi%2Fgrin-multi-wallet-scripts/lists"}