diff --git a/graphql/graphql.go b/graphql/graphql.go index 23a7713c298e..15cf4814ffce 100644 --- a/graphql/graphql.go +++ b/graphql/graphql.go @@ -265,6 +265,9 @@ func (t *Transaction) EffectiveGasPrice(ctx context.Context) (*hexutil.Big, erro if header.BaseFee == nil { return (*hexutil.Big)(tx.GasPrice()), nil } + if t.backend.ChainConfig().IsArbitrum() { + return (*hexutil.Big)(header.BaseFee), nil + } return (*hexutil.Big)(math.BigMin(new(big.Int).Add(tx.GasTipCap(), header.BaseFee), tx.GasFeeCap())), nil } diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index bb234e2194a6..51d302e759f7 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -1805,6 +1805,7 @@ func (s *PublicTransactionPoolAPI) GetTransactionReceipt(ctx context.Context, ha if err != nil { return nil, err } + fields["effectiveGasPrice"] = hexutil.Uint64(header.BaseFee.Uint64()) info, err := types.DeserializeHeaderExtraInformation(header) if err != nil { log.Error("Expected header to contain arbitrum data", "blockHash", blockHash)