Skip to content
Discussion options

You must be logged in to vote

Alright some of our client engineers did some digging and there has been a change in the behavior of upstream geth's rpc api. For these queries, you have to set a proper max gas price. See the following example of adding a gas price and getting the expected result:

soyboy@soyboys-MacBook-Air ~ % curl https://mainnet.optimism.io \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"method":"eth_call","params":[{"data":"0x6ef25c3a","to":"0x420000000000000000000000000000000000000f", "gasPrice":"0x1000000"},"latest"],"jsonrpc":"2.0","id":1}' | jq
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total  …

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@bejitono
Comment options

@Chomtana
Comment options

Comment options

You must be logged in to vote
1 reply
@sbvegan
Comment options

Answer selected by sbvegan
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app-development discussion-metrics Used by Github Action to gather discussion metrics on the question and answer section.
3 participants