{"id":19903245,"url":"https://github.com/nethereum/nethereum.console","last_synced_at":"2025-05-03T00:30:40.059Z","repository":{"id":89828893,"uuid":"98717403","full_name":"Nethereum/Nethereum.Console","owner":"Nethereum","description":"Nethereum console utilities","archived":false,"fork":false,"pushed_at":"2019-05-02T13:22:26.000Z","size":35,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-28T08:48:48.396Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Nethereum.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-29T07:48:20.000Z","updated_at":"2023-12-29T18:18:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"c73efe17-4790-427e-8559-499465fdb060","html_url":"https://github.com/Nethereum/Nethereum.Console","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nethereum%2FNethereum.Console","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nethereum%2FNethereum.Console/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nethereum%2FNethereum.Console/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Nethereum%2FNethereum.Console/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Nethereum","download_url":"https://codeload.github.com/Nethereum/Nethereum.Console/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252126375,"owners_count":21698962,"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","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-11-12T20:22:43.918Z","updated_at":"2025-05-03T00:30:40.044Z","avatar_url":"https://github.com/Nethereum.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nethereum.Console\n\nA collection of command line utilities to interact with Ethereum and account management\n\n## Installation from Source\n\n1. Install the .Net CLI (Windows, Mac, Linux) https://www.microsoft.com/net/download/core#/sdk\n2. Clone directory / download source\n3. Navigate to Nethereum.Console (directory containing Nethereum.Console.csproj)\n4. Restore Dependencies\n\n    ```dotnet restore```\n\n5. Build\n\n    ```dotnet build```\n\nOnce it is built you can run any command directly from the same directory\n\n6. Run\n\n    ```dotnet run create-account -p \"superpassword\" -dd \"c:\\Users\\JuanFran\\NewAccount\" ```\n\n# Commands\n\nYou can find the list of commands by executing  ```dotnet Nethereum.Console.dll -h```.\n\n*  ```accounts-dir-total-balance```                 Calculates the total Ether balance of all the accounts in a given directory\n * ```accounts-total-balance```                     Calculates the total Ether balance of an account or accounts using the addresses provided\n  * ```account-total-token-balance```                 Returns the token balance of an account from a compliant ERC20 smart contract\n  * ```account-transfer-from-account-file```         Transfers ether from a given acccount file (key store file) to another account\n  * ```account-transfer-from-account-private-key```  Transfers ether using the account's private key\n  * ```create-acccounts-mix-balances```              Generates new accounts in a given directory, and mixes and transfer balances from the accounts in the source directory\n  * ```create-account```                             Creates an account and stores it in a given directory\n  * ```create-account-key-pair```                    Generates a new private key and ethereum address\n  * ```send-transaction-from-account-file```         Sends a transaction using the account's key store file\n  * ```send-transaction-from-account-private-key```  Sends a transaction using the account's private key\n\n\n## Commands help\n\n* [Create Account](#create-account)\n* [Account or Accounts Total Balance](#account-or-accounts-total-balance)\n* [Account or Accounts in Directory Total Balance](#account-or-accounts-in-directory-total-balance)\n* [Account Transfer from Account File](#account-transfer-from-account-file)\n\n\n\n## Create Account\n\nCreates an account and stores it in a given folder\n\n### Command\ncreate-account\n\n### Parameters\n\n*  -p | --password            The password used for the account files\n*  -dd | --destinationDirectory  Optional: The directory to create the account key store file\n*  -? | -h | --help           Show help information\n\n### Example\n```\ncreate-account -p \"superpassword\" -dd \"c:\\Users\\JuanFran\\NewAccount\"\n```\n## Account or Accounts Total Balance\nCalculates the total balance (in Ether) of an account or accounts using the address or addresses provided\n### Command\naccounts-total-balance\n\n### Parameters\n\n*  -a | --addr       The address or addresses to calculate the total balance\n* -url              The rpc address to connect\n* -? | -h | --help  Show help information\n\n### Example\n```\naccounts-total-balance -url \"https://mainnet.infura.io/v3/7238211010344719ad14a89db874158c:8545\" -a 0xb794f5ea0ba39494ce839613fffba74279579268 -a 0xe853c56864a2ebe4576a807d26fdc4a0ada51919\n```\n\n## Account or Accounts in Directory Total Balance\nCalculates the total Ether balance of all the accounts in a given directory\n### Command\naccounts-dir-total-balance\n\n### Parameters\n\n* -sd | --sourceDirectory  The directory containing the source accounts\n* -url                     The rpc address to connect\n* -? | -h | --help         Show help information\n\n### Example\n```\naccounts-dir-total-balance -url \"https://mainnet.infura.io/v3/7238211010344719ad14a89db874158c:8545\" -sd \"c:\\Users\\JuanFran\\NewAccount\"\n```\n## Account Transfer from Account File\nTransfers ether from a given acccount file (key store file) to another account\n### Command\naccount-transfer-from-account-file\n\n### Parameters\n\n * -af | --accountFile  The account key store file\n * -ta | --toAddress    The address to send the ether to\n * -p | --password      The account file password\n * --url                The rpc address to connect\n * --amount             The amount in Ether to send\n * -? | -h | --help     Show help information\n\n### Example\n```\ndotnet run account-transfer-from-account-file --url \"http://localhost:8545\" -af \"C:\\testchain\\devChain\\keystore\\UTC--2015-11-25T05-05-03.116905600Z--12890d2cce102216644c59dae5baed380d84830c\" -p \"password\" -ta 0x13f022d72158410433cbd66f5dd8bf6d2d129924 --amount 0.1\n```\n\n## Create accounts, mix and transfer\nThis is a security feature, for a quick and simple way to move of All the ether balances from a set of accounts to a newly created set of accounts. The amounts are transfered also randomly, achieving a \"mix\".\n\nTODO: Add a delay function for transfers\n\n### Command\ncreate-acccounts-mix-balances\n\n### Parameters\n\n*  -sd | --sourceDirectory       The directory containing the source accounts\n*  -dd | --destinationDirectory  The directory to create new accounts\n*  -p | --password               The generic password used for all the account files\n*  --url                         The rpc address to connect\n*  -na                           Optional: The number of accounts to create, defaults to 4\n*  -? | -h | --help              Show help information\n\n# TODO\n* SendTransaction (added for private key and key store file, this is done add readme usage)\n* ERC20 balance (done, add readme usage), transfer\n* Generare keystore file from private key, password (done add readme usage)\n* Generate private key, address (done, todo add readme usage)\n* Retrieve private key from key storage \n* Message sign \n* Deploy contract\n* Generic Smart contract call / transfer using abi and method\n\nNote: in this sample, a special INFURA API key is used: `7238211010344719ad14a89db874158c`. If you wish to use this sample in your own project you’ll need to [sign up on INFURA](https://infura.io/register) and use your own key.\n\n# License\n\nMIT\n\nThe MIT License (MIT)\n\nCopyright (c) 2016 Nethereum.com (Juan Blanco) , Logo by Cass (https://github.com/cassiopaia)\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnethereum%2Fnethereum.console","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnethereum%2Fnethereum.console","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnethereum%2Fnethereum.console/lists"}