diff --git a/src/Transaction.tsx b/src/Transaction.tsx index ae4fb54..ad940fe 100644 --- a/src/Transaction.tsx +++ b/src/Transaction.tsx @@ -94,6 +94,7 @@ const Transaction: React.FC = () => { tokenMetas, type: _response.type ?? 0, fee: _response.gasPrice!.mul(_receipt.gasUsed), + blockBaseFeePerGas: _block.baseFeePerGas, maxFeePerGas: _response.maxFeePerGas, maxPriorityFeePerGas: _response.maxPriorityFeePerGas, gasPrice: _response.gasPrice!, diff --git a/src/transaction/Details.tsx b/src/transaction/Details.tsx index 65a4592..27d1197 100644 --- a/src/transaction/Details.tsx +++ b/src/transaction/Details.tsx @@ -135,6 +135,19 @@ const Details: React.FC = ({ + {txData.blockBaseFeePerGas && ( + + + {" "} + Gwei ( + {" "} + wei) + + + )} {txData.type === 2 && ( <> diff --git a/src/types.ts b/src/types.ts index 64fba94..482828e 100644 --- a/src/types.ts +++ b/src/types.ts @@ -53,6 +53,7 @@ export type TransactionData = { maxFeePerGas?: BigNumber | undefined; maxPriorityFeePerGas?: BigNumber | undefined; fee: BigNumber; + blockBaseFeePerGas?: BigNumber | undefined | null; gasPrice: BigNumber; gasUsed: BigNumber; gasLimit: BigNumber;