{"id":15745430,"url":"https://github.com/vaenow/geth-private-network","last_synced_at":"2025-03-31T05:45:36.981Z","repository":{"id":146489454,"uuid":"136461875","full_name":"vaenow/geth-private-network","owner":"vaenow","description":"Ethereum geth private network","archived":false,"fork":false,"pushed_at":"2018-06-08T06:43:15.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-06T10:19:13.885Z","etag":null,"topics":["eth","etheruem","geth","private-network"],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/vaenow.png","metadata":{"files":{"readme":"README.md","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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-06-07T10:35:02.000Z","updated_at":"2018-06-08T06:43:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"27b4f1c4-1380-40c7-be61-8f58854fc2cc","html_url":"https://github.com/vaenow/geth-private-network","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/vaenow%2Fgeth-private-network","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaenow%2Fgeth-private-network/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaenow%2Fgeth-private-network/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaenow%2Fgeth-private-network/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vaenow","download_url":"https://codeload.github.com/vaenow/geth-private-network/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246423728,"owners_count":20774819,"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":["eth","etheruem","geth","private-network"],"created_at":"2024-10-04T04:20:17.027Z","updated_at":"2025-03-31T05:45:36.963Z","avatar_url":"https://github.com/vaenow.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# geth-private-network\nEthereum geth private network\n\n使用命令行 `geth`，调试以太坊私有网络 \n\n## 安装 geth \n\nhttps://github.com/ethereum/go-ethereum/wiki/Installing-Geth\n\n## clone git repo\n\n```bash\ngit clone https://github.com/vaenow/geth-private-network\ncd geth-private-network/src\n```\n\n### 1. 初始化创世节点 init genesis block \n\n```bash\n./resetTestnet.sh\n```\n\n```log\nINFO [06-08|14:24:43] Maximum peer count                       ETH=25 LES=0 total=25\nINFO [06-08|14:24:43] Allocated cache and file handles         database=/home/xxx/eth/geth-private-network/src/datadir/geth/chaindata cache=16 handles=16\nINFO [06-08|14:24:43] Writing custom genesis block\nINFO [06-08|14:24:43] Persisted trie from memory database      nodes=0 size=0.00B time=2.723µs gcnodes=0 gcsize=0.00B gctime=0s livenodes=1 livesize=0.00B\nINFO [06-08|14:24:43] Successfully wrote genesis state         database=chaindata                                                         hash=5e1fc7…d790e0\nINFO [06-08|14:24:43] Allocated cache and file handles         database=/home/xxx/eth/geth-private-network/src/datadir/geth/lightchaindata cache=16 handles=16\nINFO [06-08|14:24:43] Writing custom genesis block\nINFO [06-08|14:24:43] Persisted trie from memory database      nodes=0 size=0.00B time=2.237µs gcnodes=0 gcsize=0.00B gctime=0s livenodes=1 livesize=0.00B\nINFO [06-08|14:24:43] Successfully wrote genesis state         database=lightchaindata                                                         hash=5e1fc7…d790e0\n```\n\n### 2. 创建第一个账户 create first eth account\n```bash\n./createAccount.sh\n```\n\n```log\nINFO [06-08|14:27:12] Maximum peer count                       ETH=25 LES=0 total=25\nYour new account is locked with a password. Please give a password. Do not forget this password.\nPassphrase:\nRepeat passphrase:\nAddress: {258ae6aed76f98e07fe69e4d031c8c9bb402e8cb}\n```\n\n### 3. 启动以太坊私有网络，并开始挖矿 boot ethereum private network, and start mining\n```bash\n./bootPrivateNetwork.sh\n```\n\n### Handbook\nName |  Description | 描述\n------------ | ------------ | ----------\nresetPrivateNetwork.sh | reset private network database dir |  重置私有网络的数据库\ncreateAccount.sh | create an account | 创建账户\nlistAccounts.sh | list all accounts | 打印所有账户\nbootPrivateNetwork.sh | boot private network | 启动私有网络\nbootPrivateNetworkUnlock.sh | unlock an account \u0026 boot private network | 解锁一个账户，然后启动私有网络\nconsole.sh | step into CLI | 进入命令行\ngetBalanceOf.sh | get account's balance | 打印用户资产\nunlockAccount.sh | unlock an account | 解锁一个账户\ntransfer.sh | send ether to another account | 转账：账户A 向 账户B \ngetTxn.sh | print transaction's details | 打印交易的详细信息 \nwatchingEth.sh | watching txn logs | 监控交易日志\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaenow%2Fgeth-private-network","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvaenow%2Fgeth-private-network","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaenow%2Fgeth-private-network/lists"}