Gas Model Overview
Sui uses a two-dimensional gas model:Computation Gas
Pay for CPU and network resources used during execution
Storage Gas
Pay for on-chain storage of data
Gas Cost Formula
Computation Gas
Charged for:- Move bytecode execution
- Native function calls
- Object reads and writes
- Event emissions
- Transaction processing overhead
Gas Units
Typical operations:Storage Gas
Storage Pricing
Storage cost is calculated as:Storage Rebate
When you delete or modify an object:The storage rebate is not a full refund. A small percentage (non-refundable fee) is kept by the system to fund long-term storage.
Gas Smearing
Gas costs are “smeared” to prevent MEV opportunities:Reference Gas Price (RGP)
Validators vote on the reference gas price each epoch:gas_price >= RGP:
Gas Budget
Every transaction specifies a maximum gas budget:Budget Enforcement
- Transaction aborts if gas budget is exceeded
- Gas used up to abort point is still charged
- Prevents runaway computation
Gas Optimizations
Coin-Specific Optimizations
Storage Read Charges
Economic Incentives
For Users
Delete unused objects
Delete unused objects
Recover storage rebates by cleaning up:
Minimize object size
Minimize object size
Batch operations
Batch operations
For Validators
Validators earn:- Gas fees from transactions
- Storage fees from object creation
- Staking rewards
Related Topics
Gas Pricing
Gas pricing details
Storage Fund
Storage economics
SUI Token
Learn about SUI