console.log(`sending ${web3.toWei(amount)} wei to ${window.address}`)
web3.eth.sendTransaction({to:window.address,value:web3.toWei(amount),gas:200000},txHandler)// TODO: gas is just a guess to make it working on testrpc
}
// TODO: how to detect failure of a transaction? See https://ethereum.stackexchange.com/questions/6007/how-can-the-transaction-status-from-a-thrown-error-be-detected-when-gas-can-be-e