我正在尝试使用truffle.js和testnet。我想用Kovan Ropsten测试一下。这是松露公司的医生-
networks: {
"live": {
network_id: 1, // Ethereum public network
// optional config values
// host - defaults to "localhost"
// port - defaults to 8545
// gas
// gasPrice
// from - default address to use for any transaction Truffle makes during migrations
},
"morden": {
network_id: 2, // Official Ethereum test network
host: "178.25.19.88", // Random IP for example purposes (do not use)
port: 80
},
"staging": {
network_id: 1337 // custom private network
// use default rpc settings
},
"development": {
network_id: "default"
}}
但是它没有说明关于Kovan或者应该为主机IP地址使用什么。有人知道这件事的细节吗?
我试着用-
truffle migrate --network kovan我有ubuntu 14.04和最新的松露(3.x)和最新的geth。
任何帮助都是非常感谢的。
发布于 2017-04-09 18:22:16
据我所知,Kovan只能通过运行奇偶来访问。这个回购包含了所有的信息和说明,让Kovan安装连同配置文件:https://github.com/kovan-testnet/config。
至于与信托的集成,如果您在本地运行平价,可以使用标准localhost:8545和网络id: 42。
我还建议查看这个存储库,它讨论了项目的更多细节。例如,由于Kovan使用权威证明,常规用户无法验证块(从而获得以太),因此您需要使用水龙头(在链接中讨论)来为地址提供资金。
https://ethereum.stackexchange.com/questions/15063
复制相似问题