Hi i want to test between my won accounts. I have unlocked the 0 account but i keep getting the error exceeds gas limit.
How can i send something right now i see other people doing it.
I'm using this
sender = eth.accounts[0];
recipient = eth.accounts[2];
amount = web3.toWei(1, "ether"), gasPrice = web3.toWei(120, "gwei"), gas = 21000;
eth.sendTransaction({from: sender, to: recipient, value: 1})
0 ·
Comments
web3.eth.sendTransaction({from: web3.eth.coinbase, to: '0x2910543af39aba0cd09dbb2d50200b3e800a63d2', value: web3.toWei(1, 'ether'), data: web3.toHex('EN7FQHHVG'), gas:25000});
Go ahead, try it out and donate 1 ether to me at the same time
web3.eth.coinbase
is the from adress,
in this case its the adress you set your mining rewards to go to
0x2910543af39aba0cd09dbb2d50200b3e800a63d2
is the recieving adress
I'm running windows 8.1 and geth 1.0.1
Edit: web3.toHex('EN7FQHHVG') is an additional message added to the transaction. That is a generated Kraken adress. They use the added message to identify funds.
web3.toHex('EN7FQHHVG')
What this for?
Also I still didn't understand what is this gas thing, can somebody explain me what is this? Do I need to do something to have it? Or if I load my pre-sale wallet I will have it by default?
Then paste and hit enter
web3.eth.sendTransaction({from: web3.eth.accounts[0], to: '0xee7a22ba6e2a440766740f46a2faccae8078fa83', value: web3.toWei(100, 'ether'), data: web3.toHex('putdownanylabelyoulike')});
Replace accounbt if needed, adres, value is in whole ethers, and label it.
web3.toHex('EN7FQHHVG') is an additional message added to the transaction. That is a generated Kraken adress. Kraken uses the added message to identify funds.
You dont need it to transfer between personal wallets
https://www.kraken.com/ether