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
/** | |
* Transfer the ENTIRE BALANCE from one account to another. | |
* | |
* Before you call this, you must unlock your account: | |
* personal.unlockAccount(from) | |
* | |
* @see https://github.com/ethereum/go-ethereum/issues/1637 | |
* @see https://github.com/ethereum/go-ethereum/issues/2173 | |
*/ | |
function transferEntireBalance(from, to) { |
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
/** | |
* Ethereum Account Scanner | |
* | |
* To run this, you need your own geth node, accepting RPC | |
* connections on a port you can access. | |
* | |
* Install pre-requisites: | |
* sudo npm install -g web3 | |
* | |
* Usage: |