Last active
July 21, 2016 21:13
-
-
Save khovratovich/a5e08eb7a2407b5b93615c71aa0d5213 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
personal.unlockAccount (web3.eth.accounts[0], “****”); // ← REPLACE **** WITH YOUR ACCOUNT PASSWORD | |
var fromAddr = web3.eth.accounts[0]; | |
var toAddr = web3.eth.accounts[1]; | |
var valueWei = web3.toWei (1.3, 'ether'); // Send 1.3 ETH | |
var senderABI = web3.eth.contract([{“constant”:false,”inputs”:[{“name”:”recipient”,”type”:”address”}],”name”:”send”, | |
”outputs”:[],”type”:”function”},{“constant”:true,”inputs”:[],”name”:”isRightBranch”,”outputs”:[{“name”:””,”type”:”bool”}], | |
”type”:”function”},{“inputs”:[{“name”:”blockNumber”,”type”:”uint256"},{“name”:”blockHash”,”type”:”bytes32"}],”type”:”constructor”}]); | |
var sender = senderABI.at(‘0x23141df767233776f7cbbec497800ddedaa4c684’); | |
sender.send(toAddr, {from: fromAddr, gas: 100000, value: valueWei}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment