diff --git a/internal/ethapi/api.go b/internal/ethapi/api.go index 4c5b9293a1..ac5edcdfa1 100644 --- a/internal/ethapi/api.go +++ b/internal/ethapi/api.go @@ -2105,6 +2105,10 @@ func (s *TransactionAPI) GetTransactionReceipt(ctx context.Context, hash common. "effectiveGasPrice": (*hexutil.Big)(receipt.EffectiveGasPrice), } + if receipt.EffectiveGasPrice == nil { + fields["effectiveGasPrice"] = new(hexutil.Big) + } + // Assign receipt status or post state. if len(receipt.PostState) > 0 { fields["root"] = hexutil.Bytes(receipt.PostState)