gas-pumpGas Fees

SATUCHAIN uses the standard EVM gas model. Every transaction consumes gas, and the transaction fee is calculated from the gas actually used and the gas price applied when the transaction is included in a block. On testnet, fees are paid in tSTU.

Fee Formula

Transaction Fee = Gas Used × Gas Price

Where:

  • Gas Used: the gas consumed by execution (computation), storage operations, and contract creation (if applicable)

  • Gas Price: the cost per unit of gas (commonly shown in gwei)

Units and Conversions

  • 1 STU = 10^18 wei

  • 1 gwei = 10^9 wei = 0.000000001 STU

  • 0.1 gwei = 10^8 wei = 0.0000000001 STU per gas

Current Testnet Gas Price

Reference gas price:

  • Gas Price: 0.1 gwei

Wallets typically use this value as a baseline for estimation on SATUCHAIN testnet, unless the network conditions require otherwise.

Gas Limit vs Gas Used

  • Gas Limit: the maximum gas a transaction is allowed to consume (set by the wallet or configured manually)

  • Gas Used: the actual gas consumed during execution

You only pay for gas used. If the transaction requires more gas than the limit, it fails with an out-of-gas error.

Typical Gas Costs

Gas usage depends on the transaction type:

  • Native transfer: low gas cost

  • Smart contract call: varies by computation and storage writes

  • Contract deployment: typically the highest gas cost due to init-code execution and storing bytecode on-chain

What Increases Fees

Fees increase when gas used increases. Common drivers:

  • Large contract bytecode size

  • Complex constructor logic

  • Storage writes (especially initializing new storage slots)

  • Emitting many events/logs

  • Inefficient code paths

Compiler settings can also affect gas usage. Optimizer configuration changes the deployed bytecode and may reduce runtime gas consumption.

How Wallet Estimation Works

Most wallets estimate fees by:

  1. estimating the required gas (gas limit suggestion)

  2. applying the current gas price (gwei)

  3. showing the final estimated fee before you confirm

Always review the estimated fee before deploying or executing complex transactions.

Common Errors

Insufficient funds for gas Your wallet must hold enough tSTU to cover the transaction fee, even if the transaction value is 0.

Out of gas The gas limit was too low for the required execution.

Pending transaction A low gas price can delay inclusion. On testnet, defaults usually confirm quickly.

Last updated