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,050 points
43 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
• 27,630 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
• 67,290 points
438 views
0 votes
1 answer
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 5, 2018 in Blockchain by Omkar
• 67,290 points
375 views
+1 vote
1 answer

How is Blockchain used for provenance purposes?

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

answered Apr 3, 2018 in Blockchain by Shashank
• 10,330 points
29 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
126 views
0 votes
1 answer
0 votes
1 answer

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

yes all are over TCP/IP connections secured by TLS encryption in hashgraph architecture-hashgraph, ...READ MORE

answered Aug 6, 2018 in Blockchain by ariaholic
• 7,340 points
63 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
• 27,630 points
75 views