Author

Topic: RPC call to Ethereum node (Read 116 times)

jr. member
Activity: 113
Merit: 5
May 09, 2019, 12:59:49 AM
#2
I am using parity client. I found out the reason. The from_addr and to_addr field needs to be unlocked using the personal_unlockAccount rpc command.
jr. member
Activity: 113
Merit: 5
April 22, 2019, 11:07:18 PM
#1
I want to make a call to Ethereum node using JSON RPC method. On the command line, i use the curl command to call eth_sendTransaction:

Quote
curl -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_sendTransaction","params":[{"from":"","to": "","gas": "0x76c0","gasPrice": "0x9184e72a000", "value": "0x0", "data": "0xa9059cbb0000000000000000000000007704169f56d59e0908a4423a943d9ca18e3106b900000 0000000000000000000000000000000000000000000000000000000000a"}], "id":1}' :8545

The data field "0xa9059cbb0000000000000000000000007704169f56d59e0908a4423a943d9ca18e3106b900000 0000000000000000000000000000000000000000000000000000000000a"
 is obtained from https://abi.hashex.org/

After issuing the curl command , it got stuck forever.  Do i use the right way to obtain the data field?
Jump to: