Invalid method parameters for eth sendTransaction

0 votes

I am trying to make a transaction ( c++ client via json-rpc ) - just set "from" and "to" as the rest is marked optional. Also tried to add value but I still get:

ErrorMessage{code=-32602, message=INVALID_PARAMS: Invalid method parameters (invalid name and/or type) recognised}

both are addresses owned by me ( returned via eth_accounts ) - any hint on how to overcome this are welcome This is the request I try:

{"jsonrpc":"2.0","method":"eth_sendTransaction","params":{"from":"0x3edba223fdd11309a7f277882e0bfaa287f2676b","to":"0x42ec4438503f690dcc2939047e1e8cf6b9218f95","value":1},"id":1}

Sep 28, 2018 in Blockchain by slayer
• 29,370 points
1,852 views

1 answer to this question.

0 votes

params needs to be an array, try

{"jsonrpc":"2.0","method":"eth_sendTransaction","params":[{"from":"0x3edba223fdd11309a7f277882e0bfaa287f2676b","to":"0x42ec4438503f690dcc2939047e1e8cf6b9218f95","value":1}],"id":1}
answered Sep 28, 2018 by digger
• 26,740 points

Related Questions In Blockchain

0 votes
1 answer

Getting Invalid number of parameters for “undefined” when deploying smart contract

Try something like this for contracts that ...READ MORE

answered Oct 10, 2018 in Blockchain by Omkar
• 69,220 points
3,131 views
0 votes
1 answer

truffle compile shows error: TypeError: Invalid type for argument in function call.

You are getting this error because you ...READ MORE

answered Dec 5, 2018 in Blockchain by Omkar
• 69,220 points
2,209 views
0 votes
1 answer

geth: Fatal: invalid genesis file: invalid character 'â' looking for beginning of object key string

Looks like your editor is adding characters ...READ MORE

answered Dec 6, 2018 in Blockchain by Omkar
• 69,220 points
7,195 views
+1 vote
1 answer

How is Blockchain used for provenance purposes?

Let me tell you how Blockchain could ...READ MORE

answered Apr 4, 2018 in Blockchain by Shashank
• 10,400 points
654 views
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
1,922 views
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,451 views
+1 vote
1 answer

Protocols used in a distributed/dlt system for the nodes to establish communication

yes all are over TCP/IP connections secured ...READ MORE

answered Aug 6, 2018 in Blockchain by aryya
• 7,460 points
1,426 views
0 votes
1 answer
0 votes
1 answer

How to generate new address for blockchain wallet?

You can use the following to generate ...READ MORE

answered Jul 16, 2018 in Blockchain by digger
• 26,740 points
3,277 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP