Gas is a transaction fee on the Ethereum blockchain; every time a transaction gets sent to the blockchain, a gas fee must be paid for the computational resources used by the transaction.
Gas is expensive. It is in our best interest to create contracts as gas efficient as possible without breaching security.
Gas optimizations refer to:
- doing what is cheap and avoiding what is expensive in terms of gas costs on EVM blockchains;
- doing what needs to be done as cheaply as possible.
This blog post shows a few basic gas optimization tips for those interested.