• Mark Tyneway's avatar
    l2geth: add L1 gas fields to transaction receipt · 65289e63
    Mark Tyneway authored
    The response of the RPC endpoint `eth_getTransactionReceipt`
    will now return 4 new fields.
    
    - `l1GasPrice`
    - `l1GasUsed`
    - `l1Fee`
    - `l1FeeScalar`
    
    These fields are added to the database as part of the receipt
    itself. This means that it is a consensus change as the
    serialization of the receipt has been updated. This impacts
    the blockhash because the block header commits to a merkle root
    of all of the receipts in the block.
    
    Each of the new fields on the receipt exist in the state but
    would require an archive node to query for as the values can
    change over time.
    65289e63
lazy-dingos-perform.md 245 Bytes