Skip to content

eth_estimateGas result different from geth #293

@georgehao

Description

@georgehao

Describe the bug

eth_estimateGas result different from geth

Steps to reproduce

curl -X POST http://l2reth-rpc-0.mainnet.scroll.tech:8545 \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "eth_estimateGas",
    "params": [{
      "from": "0x127B15f37aCBeaA4188A3388689445Ae892787bC",
      "to": "0x5300000000000000000000000000000000000002",
      "value": "0x0",
      "data": "0x39455d3a00000000000000000000000000000000000000000000000000000000149069ca0000000000000000000000000000000000000000000000000000000000000001",
      "gas": "0xb3ad",
      "gasPrice": "0x1e1ee"
    }],
    "id": 1
  }'
{"jsonrpc":"2.0","id":1,"result":"0x9885"}
~ ᐅ curl -X POST http://l2geth-rpc-0.mainnet.scroll.tech:8545 \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "eth_estimateGas",
    "params": [{
      "from": "0x127B15f37aCBeaA4188A3388689445Ae892787bC",
      "to": "0x5300000000000000000000000000000000000002",
      "value": "0x0",
      "data": "0x39455d3a00000000000000000000000000000000000000000000000000000000149069ca0000000000000000000000000000000000000000000000000000000000000001",
      "gas": "0xb3ad",
      "gasPrice": "0x1e1ee"
    }],
    "id": 1
  }'
{"jsonrpc":"2.0","id":1,"error":{"code":-32000,"message":"err: max fee per gas less than block base fee: address 0x127B15f37aCBeaA4188A3388689445Ae892787bC, maxFeePerGas: 123374 baseFee: 125881 (supplied gas 33498)"}}

Node logs


Platform(s)

No response

Container Type

Not running in a container

What version/commit are you on?

reth-scroll-cli Version: 1.5.0-dev
Commit SHA: ea01b62a8801c6304086998106a51ee5d67842cc
Build Timestamp: 2025-07-24T12:08:37.172416104Z
Build Features:
Build Profile: release

What database version are you on?

Current database version: 2
Local database version: 2

Which chain / network are you on?

mainnet

What type of node are you running?

Archive (default)

What prune config do you use, if any?

No response

If you've built Reth from source, provide the full command you used

No response

Code of Conduct

  • I agree to follow the Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

Status

No status

Relationships

None yet

Development

No branches or pull requests

Issue actions