Yes, I studied the documentation, but there are no instructions in it how to create a TRANSACTION CALL OBJECT, there is only an example of data. That is what I floatra. in my code, it is completely identical to the example, but returns an error.
In my example code, I create this data json_encode($params)
‘[{“to”: “0xd46e8dd67c5d32be8058bb8eb970870f07244567”}]’;
which is identical to the data in the documentation.
I tried to substitute the result line in the query.
‘{“jsonrpc”:“2.0”,“method”:“eth_estimateGas”,“params”: [{“to”:“0x3eF7e69a828e3F9EDF5293241cD64Cc0bbD52743”}],“id”:1}’;
also received a response similar to yours. The only question is what is the data type of your “ethparam” variable. May I ask you to display its data type?