eth_sendTransaction 的方法参数无效
invalid method parameters for eth_sendTransaction
我正在尝试进行交易(通过 json-rpc 的 c++ 客户端)- 只需设置 "from" 和 "to",因为其余部分标记为可选。也试图增加价值,但我仍然得到:
ErrorMessage{code=-32602, message=INVALID_PARAMS: Invalid method parameters (invalid name and/or type) recognised}
两个都是我拥有的地址(通过 eth_accounts 返回)- 欢迎任何关于如何克服这个问题的提示这是我尝试的请求:
{"jsonrpc":"2.0","method":"eth_sendTransaction","params":{"from":"0x3edba223fdd11309a7f277882e0bfaa287f2676b","to":"0x42ec4438503f690dcc2939047e1e8cf6b9218f95","value":1},"id":1}
params需要是一个数组,try
{"jsonrpc":"2.0","method":"eth_sendTransaction","params":[{"from":"0x3edba223fdd11309a7f277882e0bfaa287f2676b","to":"0x42ec4438503f690dcc2939047e1e8cf6b9218f95","value":1}],"id":1}
我正在尝试进行交易(通过 json-rpc 的 c++ 客户端)- 只需设置 "from" 和 "to",因为其余部分标记为可选。也试图增加价值,但我仍然得到:
ErrorMessage{code=-32602, message=INVALID_PARAMS: Invalid method parameters (invalid name and/or type) recognised}
两个都是我拥有的地址(通过 eth_accounts 返回)- 欢迎任何关于如何克服这个问题的提示这是我尝试的请求:
{"jsonrpc":"2.0","method":"eth_sendTransaction","params":{"from":"0x3edba223fdd11309a7f277882e0bfaa287f2676b","to":"0x42ec4438503f690dcc2939047e1e8cf6b9218f95","value":1},"id":1}
params需要是一个数组,try
{"jsonrpc":"2.0","method":"eth_sendTransaction","params":[{"from":"0x3edba223fdd11309a7f277882e0bfaa287f2676b","to":"0x42ec4438503f690dcc2939047e1e8cf6b9218f95","value":1}],"id":1}