Error when sending ether

I keep getting a runtime error when trying to send ether. I am using the following in javascript console:

eth.transact (sec, recipient, value, gas, gas price, data)

I'm attempting to send ether to the address 'e2d169445a4cbc0a20b3a4adfdf245381a25318c' of value 50000 using:

eth.transact (eth.secretToAddress(eth.coinBase()), 'e2d169445a4cbc0a20b3a4adfdf245381a25318c', '50000', '10000', '10000', '0x0')

console spits out: error runtime error: index out of range

I'm not sure the '0x0' input in data is correct. Do I have the inputs wrong?
Sign In or Register to comment.