Last active
March 19, 2018 18:27
-
-
Save javahippie/612a60ada889723039692f45143b789e to your computer and use it in GitHub Desktop.
Send a transaction on the Ethereum network
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
var request = {from: '0x.....', //the senders address | |
to: '0x.....', //the receiving address | |
value: 100}; //the value to be sent | |
web3.eth.sendTransaction(request, function(error, response) { | |
callback(error, tx); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment