I am trying to determine if it is possible to determine the transaction fee from within the program itself?
In solidity we have gasleft() which allows us to take snapshots at the beginning and end of the transaction. We can then multiply this value, with an additional buffer, with tx.gasprice.
Is there something similar for solana? Thanks