以太坊
Hello World程序员
这个作者很懒,什么都没留下…
展开
-
用合约给多个地址批量转ERC20TOKEN
用合约给多个地址批量转ERC20TOKEN需要注意先给合约里面转TOKEN。。。原创 2021-08-31 02:57:37 · 6193 阅读 · 0 评论 -
web3js调用获取当前账户
web3js调用获取当前账户 VotingContract.deployed().then(function(instance){ instance.giveRightToVote(address,{gas: 140000, from: web3.eth.accounts[0]}).then(function(result){ $("#msg2").html(...原创 2020-03-23 17:52:13 · 2844 阅读 · 1 评论 -
:无法将“truffle”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称。
原文地址http://www.b2bchain.cn/3119.html问题描述::无法将“truffle”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称。解决方法为:1、npm config get prefix2、在电脑环境变量中配置path 将刚才得出的路径配置进去 并且将其上移...原创 2020-03-31 19:03:09 · 3426 阅读 · 0 评论 -
web3.js与智能合约交互监听合约事件
原文地址http://www.b2bchain.cn/3157.html必须监听event事件!错误2:Error: the tx doesn't have the correct nonce. account has nonce of: 4 tx hasremix设置里面 重设账户...原创 2020-04-01 17:51:21 · 1602 阅读 · 0 评论 -
解析以太坊区块链跨链交易,并爬虫爬取更新于数据库
1.Execute函数执行 调用解析区块函数 errcode_rpc, trans_list, block_list, new_height, max_height = self.parallel[i]['rpc'].traverse_new_block(self.parallel[i]['filter'],blocks[i], 50)1.1.traverse_new_block函数里包括filter_to 对lock_address(锁定合约地址)进行校验...原创 2020-07-08 23:25:43 · 7647 阅读 · 0 评论 -
降低以太坊pow难度,加快出块时间
原文地址https://www.b2bchain.cn/3788.htmlgo-ethereum-master\consensus\ethash\consensus.gocalcDifficultyHomestead 函数// calcDifficultyHomestead is the difficulty adjustment algorithm. It returns// t...原创 2020-04-20 23:06:53 · 1386 阅读 · 2 评论 -
quarkchain和以太坊go版本交易执行流程简单分析
以一笔交易流程来追踪0.core/state_processor.go执行交易 tx *types.Transaction以太坊 tx *types.Transaction// ApplyTransaction attempts to apply a transaction to the given state database// and uses the input parameter...原创 2020-03-17 22:33:28 · 403 阅读 · 0 评论 -
部署以太坊私链的智能合约
很多朋友照着教程部署合约会遇到一些问题,我觉得主要是在获取abi这一步。var Multiply7 = eth.contract(contract.info.abiDefinition);1所以这里记录一下用browser-solidity编译。一、初始化私有链首先需要准备一个创世区块信息用于初始化私有链,其中difficulty为挖矿难度,建议设置低一点方便挖矿测试,保存为init.js...转载 2018-11-25 16:45:39 · 411 阅读 · 0 评论 -
以太坊源码分析go版本
分析go-ethereum的过程,我希望从依赖比较少的底层技术组件开始,慢慢深入到核心逻辑。目录go-ethereum代码阅读环境搭建以太坊黄皮书 符号索引rlp源码解析trie源码分析ethdb源码分析rpc源码分析p2p源码分析eth协议源码分析core源码分析区块链索引 chain_indexer源码分...转载 2018-12-10 23:41:09 · 349 阅读 · 0 评论