-
Notifications
You must be signed in to change notification settings - Fork 276
Unhandled Exception: RPCError: got code -32602 with msg "too many arguments, want at most 1" #61
Comments
Check this code out: |
@iceman750 What do you mean? Now my web3dart version is 1.2.0 |
Which Ethereum client are you connecting to? The rpc docs specify two parameters on the |
@simolus3 I connecting to test network. |
I think that rpc specify one parameters. I found it in https://github.com/ethereum/wiki/wiki/JSON-RPC#eth_estimategas |
The docs from |
It work! Thank you very much!!! |
I have upgraded the libary. This is my code:
var gas = await web3client.estimateGas();
It throw error "got code -32602 with msg "too many arguments, want at most 1".
This is detail error:
ui_dart_state.cc(148)] Unhandled Exception: RPCError: got code -32602 with msg "too many arguments, want at most 1".
#0 JsonRPC.call (package:web3dart/json_rpc.dart:49:7)
#1 Web3Client._makeRPCCall (package:web3dart/src/core/client.dart:58:35)
#2 Web3Client.estimateGas (package:web3dart/src/core/client.dart:325:29)
The text was updated successfully, but these errors were encountered: