You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, this seems to be nonstandardized. For e.g. some clients do not include data.
Also the open rpc link in readme as well as https://eth.wiki/json-rpc/API do not specify how the error response would be for eth_call or eth_estimateGas.
Would it be beneficial if the error response is also included in API spec?
The text was updated successfully, but these errors were encountered:
Here I'm adding a new helper function that extracts the revert reason of
a contract call. Unfortunately, this aspect of the API is underspecified.
See these spec issues for more detail:
- ethereum/execution-apis#232
- ethereum/execution-apis#463
- ethereum/execution-apis#523
The function added here only works with Geth-like servers that return
error code `3`. We will not be able to support all possible servers.
However, if there is a specific server implementation that makes it
possible to extract the same info, we could add it in the same function
as well.
---------
Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
holiman
pushed a commit
to ethereum/go-ethereum
that referenced
this issue
Nov 19, 2024
Here I'm adding a new helper function that extracts the revert reason of
a contract call. Unfortunately, this aspect of the API is underspecified.
See these spec issues for more detail:
- ethereum/execution-apis#232
- ethereum/execution-apis#463
- ethereum/execution-apis#523
The function added here only works with Geth-like servers that return
error code `3`. We will not be able to support all possible servers.
However, if there is a specific server implementation that makes it
possible to extract the same info, we could add it in the same function
as well.
---------
Co-authored-by: Marius van der Wijden <m.vanderwijden@live.de>
Currently when an eth_call or eth_estimateGas fails and if the revert data is present, geth's rpc returns:
However, this seems to be nonstandardized. For e.g. some clients do not include
data
.Also the open rpc link in readme as well as https://eth.wiki/json-rpc/API do not specify how the error response would be for eth_call or eth_estimateGas.
Would it be beneficial if the error response is also included in API spec?
The text was updated successfully, but these errors were encountered: