I use web3 to send transaction with Ethereum on the ropsten network. But I tried to on main network, and I've the same result.
I don't no why but since few days send transaction function didn't work.
This is my code :
user1 = web3.eth.coinbase
user2 = 'acount2'
transaction = {'from': user2, 'to':user1, 'data': web3.toHex("test)}
transaction_hash = web3.eth.sendTransaction(transaction)
This worked but now I've this error :timeout: timed out
How can I do to resolve this?
user2 = web3.eth.accounts[1]
? – Tjaden Hess♦ Jan 5 '17 at 22:50user2
is the account address like0x....
. – wxcvbn Jan 6 '17 at 7:44