-
Notifications
You must be signed in to change notification settings - Fork 468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'Invalid Params' Error on Nethermind for Type-3 Transactions #7987
Comments
@flcl42 @marcindsobczak Any chance you can look at this? |
Not sure if I reproduced it or found something else but calling estimateGas like this:
I got such errors: {"jsonrpc":"2.0","error":{"code":-32603,"message":"Internal error","data":"System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.\n ---> System.InvalidOperationException: Nullable object must have a value.\n at Nethermind.Serialization.Rlp.TxDecoders.BlobTxDecoder |
Description
After the Cancun upgrade, Ethereum introduced Type-3 transactions, which can store “blob” data with significantly reduced gas costs. While eth_estimateGas should return the correct gas usage for a Type-3 transaction, it currently returns {'code': -32602, 'message': 'Invalid params'}.
Steps to Reproduce
To reproduce this issue, follow these steps:
Nethermind
.TESTNET_RPC_URL=<your-nethermind-node-rpc-url> python3 estimate.py
).{'code': -32602, 'message': 'Invalid params'}
.Actual behavior
The error returned is {'code': -32602, 'message': 'Invalid params'}. After reviewing the following code:
nethermind/src/Nethermind/Nethermind.JsonRpc/JsonRpcService.cs
Lines 154 to 162 in 1a1e602
I suspect that the RPC module does not yet support Type-3 transactions, as suggested by this snippet.
Expected behavior
Switching the
TESTNET_RPC_URL
to a endpoint ofgeth
,reth
,besu
, orerigon
allows the script to successfully return the estimated gas.Desktop (please complete the following information):
Please provide the following information regarding your setup:
Appendix
The python script (i.e.,
estimate.py
used for poc):The text was updated successfully, but these errors were encountered: