이더리움에서 일반 이더를 송금할 때는 이벤트를 받을수가 없다. 따라서 다음과 같이 filter를 걸어서 block안의 transactions에 우리가 원하는 transactionHash가 포함되었는지를 확인함으로서 송금이 완료되었는지를 확인할수 있다.아래의 소스코드는 node.js로 작성하였다. // 이더리움 web3에 접속 var EthConn = require('../contracts/ethconn.js');var host = 'http://localhost:8545'var ethconn = new EthConn(host);console.log(ethconn.web3.eth.accounts); var web3 = ethconn.web3;var eth = web3.eth;var personal = we..
이더리움에서 web3.js를 통해서 network에 접속하는 API를 제공받게 되는데 현재 버그가 존재한다. web3.setProvider('http://localhost:8545')not connected to provider 다음과 같은 곳에서 자료를 찾을수 있다.https://github.com/ethereum/web3.js/issues/1051 해결 방법다음과 같이 package.json을 만들어서 local module로 관리한다.npm install web3@0.20.0 --save{ "dependencies": { "request": "^2.83.0", "web3": "0.19.0" }} 문제의 원인npm으로 web3를 버전 없이 설치하였을 경우 web3@1.0.0-beta.x가 설치되는데 ..
Test RPC is a client for testing:testrpc is a Node.js based Ethereum client for testing and development. It uses ethereumjs to simulate full client behavior and make developing Ethereum applications much faster. It also includes all popular RPC functions and features (like events) and can be run deterministically to make development a breeze.While Geth is a full client in GO Language that you ca..
- Total
- Today
- Yesterday