Skip to content

Instantly share code, notes, and snippets.

@khovratovich
Last active July 21, 2016 21:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save khovratovich/a5e08eb7a2407b5b93615c71aa0d5213 to your computer and use it in GitHub Desktop.
Save khovratovich/a5e08eb7a2407b5b93615c71aa0d5213 to your computer and use it in GitHub Desktop.
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