Try it Live
Run Hardfork examples in the interactive playground
EIP-1153 Features
Active Since: Cancun (March 13, 2024)Transient Storage Opcodes
TLOAD (0x5C):- Load from transient storage
- Gas cost: 100 gas (warm)
- Store to transient storage
- Gas cost: 100 gas
Storage Lifecycle
Transaction-Scoped:- Storage cleared at end of transaction
- Not persisted to state
- Survives across internal calls within same transaction
- Same key space as regular storage
- Separate from permanent storage
- Per-contract transient storage
Usage Patterns
Reentrancy Locks
Implement cheap reentrancy guards:Intermediate Calculations
Store temporary values:Cross-Contract Communication
Pass data between contracts in same transaction:Flash Accounting
Track temporary balances:Gas Costs
Transient Storage (EIP-1153)
| Operation | Gas Cost |
|---|---|
| TLOAD | 100 gas |
| TSTORE | 100 gas |
Regular Storage (Comparison)
| Operation | Gas Cost |
|---|---|
| SLOAD (warm) | 100 gas |
| SLOAD (cold) | 2,100 gas |
| SSTORE (warm, no change) | 100 gas |
| SSTORE (cold, zero → non-zero) | 20,000 gas |
| SSTORE (cold, non-zero → zero) | 2,900 gas (with refund) |
Savings Example
Reentrancy lock pattern:Network Configuration
Check transient storage support:Compiler Integration
Enable transient storage in compiler:EIP References
Primary:- EIP-1153 - Transient storage opcodes
Impact
For Developers:- Dramatically cheaper temporary storage (~100x cheaper)
- Ideal for reentrancy locks, flash loans, temporary state
- Must clear at transaction end (automatic)
- Typical savings: 15,000-25,000 gas per reentrancy lock
- Enables new patterns (cheap cross-contract communication)
- No persistence - not suitable for state that must survive transaction
- Reentrancy locks become affordable
- Reduces incentive to skip security checks for gas savings
- Clearer separation of temporary vs permanent state
Common Use Cases
- Reentrancy Guards: Save ~24k gas per lock
- Flash Accounting: Track temporary balances (flash loans)
- Cross-Contract Coordination: Pass data between contracts
- Intermediate Calculations: Cache expensive computations within transaction
- Access Control: Temporary permissions that expire at transaction end
See Also
- hasEIP4844 - Check blob transactions availability (Cancun)
- hasEIP1559 - Check EIP-1559 base fee availability (London)
- isAtLeast - General version comparison

