geth命令端连接到testrpc

1.在一个终端运行testrpc
2.在另外一个终端执行

/job/gopath/src/github.com/ethereum/go-ethereum$ ./build/bin/geth attach rpc:http://localhost:8545

得到下面的输出

2018/08/31 11:45:58 test console/console.go init test Compile web3.js
2018/08/31 11:45:58 var eth = web3.eth; var personal = web3.personal; 
2018/08/31 11:45:58 test console/console.go init test--------------------
2018/08/31 11:45:58 test console/console.go api = net
2018/08/31 11:45:58 test console/console.go api = rpc
2018/08/31 11:45:58 test console/console.go api = web3
2018/08/31 11:45:58 test console/console.go api = evm
2018/08/31 11:45:58 test console/console.go api = personal
2018/08/31 11:45:58 test console/console.go api = eth
Welcome to the Geth JavaScript console!

instance: EthereumJS TestRPC/v2.0.2/ethereum-js
coinbase: 0xb8e1702839d05a8d932b9baad8de688229304c30
at block: 11 (Fri, 31 Aug 2018 11:11:19 CST)
 modules: eth:1.0 evm:1.0 net:1.0 personal:1.0 rpc:1.0 web3:1.0
> 

你可能感兴趣的:(geth命令端连接到testrpc)