安装:
npm install -g ganache-cli@6.1.8
使用:
userdeMacBook-Pro:~ user$ ganache-cli -m "success rifle romance major host prosper subway regular edge old lake achieve"
这样就能够使用图形化界面的ganache中的账户设置了
返回:
Ganache CLI v6.1.8 (ganache-core: 2.2.1) Available Accounts ================== (0) 0x3455f15cc11f2e77c055f931a6c918ccc7c18fd8 (~100 ETH) (1) 0x7ddad6a67544efb0c51808c77009a7b98cc81630 (~100 ETH) (2) 0xe9478ebcf4c755ad945a351261c8fa046672963b (~100 ETH) (3) 0x920f422b761976972a9eadbec1f5341a9747ea6a (~100 ETH) (4) 0xa17a7fa74a7dd57dff005b45234292e7daaf150c (~100 ETH) (5) 0x2a84df83f765a7f0ed3a5c7728b48a86a098cd22 (~100 ETH) (6) 0x8059664c0c773f1678e262968e4eef9549e94862 (~100 ETH) (7) 0xe4d3e77d20f910a44cff97a47a736ad387ea3061 (~100 ETH) (8) 0x77a21706f9cdd6c3476dd2c6fa52d99c59dacb4a (~100 ETH) (9) 0x0f49e6b6c67cfd2dc00dde4bf24e4a99760f0f28 (~100 ETH) Private Keys ================== (0) 0x9af0f29100b9575ffe7d5596d87003b6ada89076ca84342f1fe57d85acde4ca6 (1) 0x2dab4c94ac0086e919613201b709f28c3f81e0350e83d7294d3ab7d0ad8cc121 (2) 0x3f55b12a9af84d4a155dad2f33aef15622c30d8bb7c1cace1540dd9ad2b915e6 (3) 0x37697524150e8a38e24e42c6cbe44717c4056967e773fb6586dc1b880c786f04 (4) 0xf3605313e85664094252f69224d805c62b1af768cdd39793e8cefd7630dfe3b8 (5) 0x1c4a1ec37d397f0cdfdfa21e85d368b4313cfbdf9b4bb0f1565f8ecc8819ab50 (6) 0xaf92fe65a9c6a7c920f9859dc402b5d921d25c833dfb1c60f56ecf76a1661ced (7) 0x3816f0a9450f242d904666163ea56fef5b6cbd8b85d61be6cc31eb0541eca9ce (8) 0xd395b946953760001e18e7a9da7296b57ef71084834e9c6add9bcc2e7cd14436 (9) 0x612bfab738d17b75b4451bfce290ddb5c6d0308e25b454f9b2354658cb2f0b8f HD Wallet ================== Mnemonic: success rifle romance major host prosper subway regular edge old lake achieve Base HD Path: m/44'/60'/0'/0/{account_index} Gas Price ================== 20000000000 Gas Limit ================== 6721975 Listening on 127.0.0.1:8545 net_version eth_sendRawTransaction