• Home
  • Archives
  • RSS
  JarryYen的小日子
  • Home
  • Archives
  • RSS
  • jenkins
  • Tips
  • Free
  • Share
  • Coin
  • scrapy

以太坊相关参考文档

http://web3js.readthedocs.io/en/1.0/index.html web3.js 1.0 版本

https://github.com/ethereum/wiki/wiki/JavaScript-API web3.js 0.2版本

https://solidity-cn.readthedocs.io/zh/develop/ Solidity 中文版帮助文档

https://solidity.readthedocs.io/en/develop/ Solidity 英文版帮助文档

2018/12/18 posted in  Coin

Geth 的JavaScript控制

  1. 如何连接

  2. 常用命令
    1. attach
    2. admin.peers
    3. net.peerCount
    4. admin.addPeer("enode://....")

  3. 如何连接

geth attach [路径]/geth.ipc
geth attach http://[IP]:8545
geth attach ws://[IP]:8545

  1. 常用命令

    attach
    可以使用geth然后使用这个参数可以进行登录


    admin.peers
    查看集群信息


    net.peerCount
    查看现在已经连接的节点数量


    admin.addPeer("enode://....")
    可以使用这个方法添加节点


    admin.peers.forEach(function(p) {console.log(p.network.remoteAddress);})
    通过这个方法可以查看已经连接的节点IP列表

2018/02/22 posted in  Coin

JarryYen的小日子

真实信息 无愧于心
RSS

Categories

jenkins Tips Free Share Coin scrapy

Recent Posts

  • 用BT面板
  • 今天解决了手机残留证书的问题
  • codeigniter 去除index.php (nginx,apache) 通用方法
  • https导致微信内分享链接无图片以及描述等信息
  • 今天使用BT(宝塔)出现了这个问题

Copyright © 2015 Powered by MWeb,  Theme used GitHub CSS.