I want to send transaction to account this is the command to use :
curl -X POST --data '{"jsonrpc":"2.0","method":"eth_sendTransaction","params":[{parms}],"id":1}'
and this is the params to use :
params: [{
"from": "0xb60e8dd61c5d32be8058bb8eb970870f07233155",
"to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567",
"gas": "0x76c0", // 30400,
"gasPrice": "0x9184e72a000", // 10000000000000
"value": "0x9184e72a", // 2441406250
"data": "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675"
}]
But I don't understand in which unity are "gas"
, "gasPrice"
, and "value"
Before I can send transaction with this command :
eth.sendTransaction({from:eth.accounts[0],to:eth.accounts[1],value:web3.toWei(100,'ether'),data:web3.toHex('message')})
How can I do to do the same thing with Ethereum json rpc?