The fee is paid to miners.
Take Polygon as an example: when a user transfers money on the Polygon network, the transaction can only be completed after miners pack this transaction and put it on the blockchain. This process consumes computational power of the blockchain. So users need to pay a gas fee to miners.
Different tokens are used for payment on different main networks: for example, the Polygon network uses Matic.
Calculation formula of: Gas Fee = Gas Price * Gas Limit.
Price per unit of gas.
Gas price is usually expressed in Gwei, 1 Gwei = 0.000000001 Matic.
Gas Price refers to the amount of Gwei.
It affects the speed of a user’s transaction. If you set a higher gas price, miners will likely prioritize your transaction; on the contrary, if you lower the gas price, it will take more time to wait.
Defines the maximum amount of gas an operation can use before each transaction or contract order.
If the amount of gas used in this operation is less than or equal to the gas limit set by user, the operation will be executed.
Transactions with a lower gas limit than the gas actually used will never execute. In this case, you will not be refunded the gas spent.