Fees
Last updated
Last updated
Every transaction on Swan Chain consists of two costs: an L2 (execution) fee and an L1 (security) fee. The L2 fee is the cost to execute your transaction on the L2, and the L1 fee is the estimated cost to publish the transaction on the L1. Typically the L1 security fee is higher than the L2 execution fee.
The L1 fee will vary depending on the amount of transactions on the L1. If the timing of your transaction is flexible, you can save costs by submitting transactions during periods of lower gas on the L1 (for example, over the weekend)
Similarly, the L2 fee can increase and decrease depending on how many transactions are being submitted to the L2. This adjustment mechanism has the same implementation as the L1.
For additional details about fee calculation on Swan Chain, please refer to the op-stack developer documentation.
When interacting with the Swan Chain mainnet, you might notice that gas fees can sometimes be higher than expected. This guide will walk you through the process of optimizing your MetaMask settings to significantly reduce these fees
Begin by starting a transaction on the Swan Chain network. When the MetaMask window pops up, don't confirm it immediately.
Look for an "Edit" button or link next to the estimated fee. Click on this to open the fee editing window.
In the fee editing window, find and click on the "Advanced" option. This will reveal more detailed gas fee settings.
Now, you'll see two important fields:
Max base fee (GWEI)
Priority fee (GWEI)
Set both of these values to 0.0015.
This is a crucial step to save time in future transactions. Look for a checkbox that says something like "Save these values as my default for the Swan Chain network". Make sure to check this box.
Click on the "Save" button to confirm your new settings.
Now, you can proceed with confirming your transaction. You should notice a significant reduction in the gas fee. You can also visit swanscan.io to check your transaction fee.
After applying these settings, you should see a dramatic decrease in gas fees. For example:
Before: Approximately $0.86
After: Approximately $0.25
This represents a reduction of nearly two-thirds in gas costs!