All Questions
2 questions
9
votes
3
answers
7k
views
Who pays gas for smart contracts?
I'm currently writing my first smart contract and I'm trying to figure out how to inject gas into the contract, of course, if it's possible.
I'm not sure If I got it correctly. With every transaction ...
7
votes
2
answers
563
views
How transaction fee is calculated in case of L2?
In case of L1, the transaction fee is typically calculated as the product of gas price and gas usage, i.e.,
txFee = gasPrice * gasUsage
One such example can be seen in this transaction.
In which the ...