hashgraph / hedera-mirror-node-explorer

Hedera Mirror Node Explorer for the Hedera Hashgraph DLT.
Apache License 2.0
15 stars 12 forks source link

Unclear EVM Transaction Gas Cost definitions in Explorer #1188

Open simsonraj opened 1 month ago

simsonraj commented 1 month ago

Problem

Unable to deduce exactly how much an EVM transaction cost, For example, https://hashscan.io/testnet/transaction/1720118323.274715003 this transaction

Solution

Alternatives

No response

svienot commented 1 month ago

Hi @simsonraj -- HashScan essentially displays data returned by the mirror-node but you are correct there are at least a few inconsistencies:

I am still trying to figure out exactly how to add up the fee data returned by mirror node. May I ask why you say they add up in the other (EIP1559) transaction you mention?

simsonraj commented 1 month ago

Hi @simsonraj -- HashScan essentially displays data returned by the mirror-node but you are correct there are at least a few inconsistencies:

  • Max Fee Per Gas and Max Priority Fee Per Gas are indeed in tinybar whereas the other amounts are in hbar.
  • In the case of an Ethereum transaction, instead of displaying Payer Account we should probably display both 'Sender Account' and 'Relay Account'.

I am still trying to figure out exactly how to add up the fee data returned by mirror node. May I ask why you say they add up in the other (EIP1559) transaction you mention?

Because for the EIP 1559 txn, 21,000 (gas Used) * 125(gasPrice, ignoring the tip fees) = 0.02625000 + 1 HBAR transfer value = 1.02625000HBAR from the sender wallet