Fatal: Unable to attach to remote geth: no known transport for URL scheme "c"

我的系统是win10,geth的版本是 1.8.2-stable-b8b9f7f4

按照http://www.cnblogs.com/huyouhengbc/p/5922093.html
的示例,尝试写智能合约的时候,

C:\Users\myname>geth attach
Fatal: Unable to attach to remote geth: no known transport for URL scheme "c"

在网上搜了搜,然后:

C:\Users\myname>geth attach ipc:\\.\pipe\geth.ipc
Welcome to the Geth JavaScript console!

instance: Geth/v1.8.2-stable-b8b9f7f4/windows-amd64/go1.9.2
coinbase: 0xa94070384b73edda91032901eaaeac42a947e725
at block: 0 (Thu, 01 Jan 1970 08:00:00 CST)
 datadir: C:\Users\myname\testNet
 modules: admin:1.0 clique:1.0 debug:1.0 eth:1.0 miner:1.0 net:1.0 personal:1.0 rpc:1.0 shh:1.0 txpool:1.0 web3:1.0

>

得这么写了:

geth attach ipc:\.\pipe\geth.ipc

你可能感兴趣的:(Fatal: Unable to attach to remote geth: no known transport for URL scheme "c")