Ethcode docs
Search…
⌃K

Set transaction gas strategy

Network transaction gas price changes frequently depending on network difficulty. For example polygon gas tracker divides transaction gas into three categories
Standard: The amount of Gwei transferred for transactions is low compared to the fast and rapid category. preference of adding your transaction to block is less by the miner or validator. the transaction can take up to 30secs-60secs.
Fast: The amount of Gwei transferred for transactions is high compared to the standard but less than the rapid category. preference of adding your transaction to the block is more compared to the standard category by the miner or validator. the transaction can take up to 10secs-30secs.
Rapid: The amount of Gwei transferred for transactions is high compared to the standard and Fast categories. The transaction is very fast and can take only 5secs - 10secs to complete.

Ethcode Gas strategy

You can also set your own transaction gas strategy in Ethcode according to your choice. the transaction strategy in Ethcode is categorised in three parts:
  1. 1.
    High - Supply of gas is more and comes under the Rapid category.
  2. 2.
    Medium - The supply of gas is medium and comes under the Fast category.
  3. 3.
    Low - The supply of gas is less and comes under the Standard category.
How you can set your transaction strategy in Ethcode:
  1. 1.
    ctrl + shift + P- command to open VScode commands palate.
  2. 2.
    Ethcode: Set transaction gas strategy- command to set transaction gas strategy in Ethcode.
set transaction gas strategy
3. Select your choice.
gas choice
gas choice selected