博客
这里发布本站的最近动态
EOS 的最高 TPS 作假
   4 分钟阅读
最近看到 BM 说要搞银河系通用货币,TPS 可以打到千万! 感觉这家伙牛逼吹的越来越狠了。 记得以前 EOS 说是要到百万,最终线上 TPS 最高才 3000; 而且这个数据也是
vue/react 加载 Web3 模块
   1 分钟阅读
封装 web3 getWeb3.js import Web3 from "web3"; const getWeb3 = () => new Promise((resolve, reject) => { // Wait for loading completion to avoid race conditions with web3 injection timing. window.addEventListener("load", async () => { // Modern dapp browsers... if (window.ethereum) { const web3 = new Web3(window.ethereum); try { // Request account access if needed await window.ethereum.enable(); // Acccounts now exposed resolve(web3); } catch (error) { reject(error); } }
web3 交易 logs 相关总结
   4 分钟阅读
getPastLogs myContract.getPastEvents() web3.eth.abi.decodeLog subscribe(‘logs’)- 未实现 getPastLogs 和 myContract.getPastEvents() 都是调用eth_getLogs getPastLogs web3.eth.getPastLogs(options [, callback]) new Method({ name: 'getPastLogs', call: 'eth_getLogs', params: 1, inputFormatter: [formatter.inputLogFormatter], outputFormatter: formatter.outputLogFormatter
web3.contract 总结
   3 分钟阅读
web3.eth.Contract 模块的属性和方法 该模块封装在web3.eth.Contract; 使用的时候需要提供你创建合约时候返回的json信息,WEB3 会基于 json 文件自
以太坊的 mist 钱包项目
   2 分钟阅读
Mist 是以太坊官方提供的浏览器,通过 Mist 我们可以很方便的连接上我们的私有网络,从而更好的开发、调试、测试我们的智能合约。 Github 地址 https://github.com/ethereum/mist 类浏览器 https://github.com/ethereum/meteor-dapp-wallet 类界面 M
以太坊钱包项目中 Geth 的启用 DEMO
   1 分钟阅读
DEMO 代码如下 省略了 geth 的比较等之类的校验; 核心代码如下; 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
区块链合约实现的封装代码
   5 分钟阅读
合约文档 使用 约定 new Contract 属性 options options.address options.jsonInterface methods 方法 clone() deploy() methods.myMethod() methods.myMethod.call() methods.myMethod.send() methods.myMethod.estimateGas() methods.myMethod.encodeABI() 使用 Contract对象可以让开发者更容易的与Canonchain节点进行智能合约交互; 开
区块链网页钱包为什么不安全
   9 分钟阅读
研究场景 因项目需要,研究在线网页钱包不安全的因素,然后根据这些因素,找到合适的方案; 经常说网页钱包不安全,但是为什么不安全,具体有哪些不安全
数字货币定投策略回测
   8 分钟阅读
注意:结果不给力 做止盈止损这种虽然下跌时候赚钱,但是大涨的时候,可能还亏钱,程序内有点逻辑出现 BUG 从 2018 年的年初最高点 BTC 买入到现在 7000 的价格, 按照