Twitter:https://twitter.com/0xoakk
Twitter:https://twitter.com/0xoakk

Subscribe to Oak

Subscribe to Oak
Share Dialog
Share Dialog
<100 subscribers
<100 subscribers
Author: @0xoakk Translation thanks: @PandaSkiing
Link to the original Chinese article: https://mirror.xyz/0xoakk.eth/hP9vDSG9UuYHDHCtWqOyTtfbozjpoxpvak0nJRnbVcU
Before we start the tutorial, let’s first explain some glossaries.
1. Gas War
Every transaction need gas fee on Ethereum. Cost of gas fee depends on the supply and demand for processing power on the network. For example, if the network has a lot of transactions, the demand for processing power will be high and will trigger an increase in gas fees. If you want to speed up your transactions, you need to higher gas fee, then there will be a gas war.
2. Composition of Gas Fee: Base + Max + Max Priority

**Base: Base fee of current block. **Base is a dynamic factor that alter by the supply and demand (capacity) in the network. Next block’s base fee will be +- 12.5 % related to last block’s capacity. When last block capacity is 0%, base fee will decrease by 12.5%, and vice versa. Something need to be pointed out is that when capacity is around 50%, base fee won’s change.
Max Priority: Maximum amount of users willing to pay to miners On Ethereum, all transactions are packed up by miners to blocks. As much as miner fee you pay(known as tip, as soon as possible your transaction will be packed up. For example, you would like to pay $1 to miners, then you must exactly pay $1 to miners.
Max: The maximum amount you willing to pay Max refers the maximum limit you want to pay. For example, you set Max=100, but actual transaction only requires 50 gas fee. Noticed, you need to satisfy Max >= Base + Max Priority, then transaction will be executed successfully.
3. Gwei (a unit), 1 ETH = 10^9 Gwei = 10^18 Wei
4. On Ethereum, time interval between each block is around 12-14 seconds.
After all glossaries, let’s begin the tutorial that how can we do.
In order to win the gas war, the key is to preset the gas fee. We will use Metamask as an example.
1. Click on the up-right profile, select setting.

2. Click on “Advanced” and go to Setting, click “experimental” and Enable Enhanced Gas Fee UI”。


3. Send a transaction to your another account, do not click on “confirm”, but click on “market”

4. Then we choose “advanced”

5. Pre set your Max Base and Max Priority. And then click “Save these new values as my default for "Advanced”. Then click on “ save”

How to determine the value of Max Base and Max Priority?
Here a trick, always remember there will be 12.5% change in the next block.
For example, the base fee is 100, we could set the Max base to 200. From formula, 100 * 12.5% * 112.5% * 112.5% * 112.5% * 112.5% * 112.5% = 202.73. During these 6 blocks, our transaction will be successful, if it beyond 6 blocks, then transactions will be failed. Usually, we set only 2-3 times more of current base fee.
Max Priority(tip): you want to line up at the first, you need to pay the tip to miners. Usually, set 3-5 when it’s in “market” status. Set 50-80 when in “aggressive” status.
After all setting, your final gas fee = actual base fee( usually <= Max base) + max priority.
6. After all setting, we see the “market” icon became “advanced” and “edit”. We then reject this transaction, then all future transaction’s gas fee will be paid as default you just set.

7. If you want to cancel your advanced setting, go to “advanced” and click off “Save these new values as my default for "Advanced”

That’s all for gas war’s tutorials.
Here is bonus tutorial for “sign”. If you are a NFT flipper, you would like sell your NFTs as quick as possible, you can follow the tutorial below.
1. On Etherscan, find out the address of the NFT you want to sell, we take “Aswang” as an example here. First, click “contract”, then click “write contract” , then click ”Connect to web3”

2. Find out “setApprovalForAll”, expand it, and in “operator” input where you want to sell your NFT, such as Opensea. Then in “approved” input true. Lastly, click “write”

Here’s three main NFT market’s address. Opensea: 0x1E0049783F008A0085193E00003D00cd54003c71 LooksRare: 0xf42aa99F011A1fA7CDA90E5E98b277E306BcA83e X2Y2: 0xF849de01B080aDC3A814FaBE1E2087475cF2E354
If you have any doubts about these three addresses, you can find your own authorized transaction history for OpenSea on Etherscan, and then click “Logs” tab to find the market contract address.

3. Then you approve the transactions, after mint, you could directly list your NFTs on the market.

That’s really the end, see you soon folks, and good luck!
Author: @0xoakk Translation thanks: @PandaSkiing More exciting content in our discord: Dreamworks
Author: @0xoakk Translation thanks: @PandaSkiing
Link to the original Chinese article: https://mirror.xyz/0xoakk.eth/hP9vDSG9UuYHDHCtWqOyTtfbozjpoxpvak0nJRnbVcU
Before we start the tutorial, let’s first explain some glossaries.
1. Gas War
Every transaction need gas fee on Ethereum. Cost of gas fee depends on the supply and demand for processing power on the network. For example, if the network has a lot of transactions, the demand for processing power will be high and will trigger an increase in gas fees. If you want to speed up your transactions, you need to higher gas fee, then there will be a gas war.
2. Composition of Gas Fee: Base + Max + Max Priority

**Base: Base fee of current block. **Base is a dynamic factor that alter by the supply and demand (capacity) in the network. Next block’s base fee will be +- 12.5 % related to last block’s capacity. When last block capacity is 0%, base fee will decrease by 12.5%, and vice versa. Something need to be pointed out is that when capacity is around 50%, base fee won’s change.
Max Priority: Maximum amount of users willing to pay to miners On Ethereum, all transactions are packed up by miners to blocks. As much as miner fee you pay(known as tip, as soon as possible your transaction will be packed up. For example, you would like to pay $1 to miners, then you must exactly pay $1 to miners.
Max: The maximum amount you willing to pay Max refers the maximum limit you want to pay. For example, you set Max=100, but actual transaction only requires 50 gas fee. Noticed, you need to satisfy Max >= Base + Max Priority, then transaction will be executed successfully.
3. Gwei (a unit), 1 ETH = 10^9 Gwei = 10^18 Wei
4. On Ethereum, time interval between each block is around 12-14 seconds.
After all glossaries, let’s begin the tutorial that how can we do.
In order to win the gas war, the key is to preset the gas fee. We will use Metamask as an example.
1. Click on the up-right profile, select setting.

2. Click on “Advanced” and go to Setting, click “experimental” and Enable Enhanced Gas Fee UI”。


3. Send a transaction to your another account, do not click on “confirm”, but click on “market”

4. Then we choose “advanced”

5. Pre set your Max Base and Max Priority. And then click “Save these new values as my default for "Advanced”. Then click on “ save”

How to determine the value of Max Base and Max Priority?
Here a trick, always remember there will be 12.5% change in the next block.
For example, the base fee is 100, we could set the Max base to 200. From formula, 100 * 12.5% * 112.5% * 112.5% * 112.5% * 112.5% * 112.5% = 202.73. During these 6 blocks, our transaction will be successful, if it beyond 6 blocks, then transactions will be failed. Usually, we set only 2-3 times more of current base fee.
Max Priority(tip): you want to line up at the first, you need to pay the tip to miners. Usually, set 3-5 when it’s in “market” status. Set 50-80 when in “aggressive” status.
After all setting, your final gas fee = actual base fee( usually <= Max base) + max priority.
6. After all setting, we see the “market” icon became “advanced” and “edit”. We then reject this transaction, then all future transaction’s gas fee will be paid as default you just set.

7. If you want to cancel your advanced setting, go to “advanced” and click off “Save these new values as my default for "Advanced”

That’s all for gas war’s tutorials.
Here is bonus tutorial for “sign”. If you are a NFT flipper, you would like sell your NFTs as quick as possible, you can follow the tutorial below.
1. On Etherscan, find out the address of the NFT you want to sell, we take “Aswang” as an example here. First, click “contract”, then click “write contract” , then click ”Connect to web3”

2. Find out “setApprovalForAll”, expand it, and in “operator” input where you want to sell your NFT, such as Opensea. Then in “approved” input true. Lastly, click “write”

Here’s three main NFT market’s address. Opensea: 0x1E0049783F008A0085193E00003D00cd54003c71 LooksRare: 0xf42aa99F011A1fA7CDA90E5E98b277E306BcA83e X2Y2: 0xF849de01B080aDC3A814FaBE1E2087475cF2E354
If you have any doubts about these three addresses, you can find your own authorized transaction history for OpenSea on Etherscan, and then click “Logs” tab to find the market contract address.

3. Then you approve the transactions, after mint, you could directly list your NFTs on the market.

That’s really the end, see you soon folks, and good luck!
Author: @0xoakk Translation thanks: @PandaSkiing More exciting content in our discord: Dreamworks
No activity yet