Fees & Gas
On the Secret Network gas is a special unit used for tracking the the use of resources during code execution (usually paid by the transaction sender). Gas fees are normally paid to execute read / write commands, but can also be used to pay for more resource intensive computational tasks.
Gas primarily serves two purposes:
- 2.To prevent end-users from spamming and abusing the Secret Network. Most applications implement fee mechanisms to prevent spam, but the
secretclidoes not enforce gas pricing by default.
Each transaction supplies fees or gas prices, but never both.
Validator's have a minimum gas price (multi-denom) configuration used to determine if they should include a transaction in a block during
gasPrices >= minGasPrices.
Note: Transactions must supply fees greater than or equal to any fees set by validators. Validators may start to prioritize transactions by
gasPricein the mempool, increasing transaction priority based on fees or gas prices.
# secretcli tx bank send [from_key_or_address] [to_address] [amount] [flags]
secretcli tx bank send ... --fees=50000uscrt
secretcli tx bank send ... --gas-prices=0.0125uscrt