{"id":"EIP-1153","name":"Transient Storage Opcodes","status":"Final","chain":"both","category":{"id":"defi","name":"DeFi Patterns","description":"Vaults, bonds, and financial primitives"},"journeyStages":[{"id":"gas","name":"Gas & Fees","description":"Paying for transactions"}],"uxImpact":"Transactions use cheaper temporary storage that persists only within the transaction — invisible to users but enables lower gas costs. Design implications: not directly user-facing, but enables cheaper reentrancy-protected swaps, lower gas estimates for complex multi-step transactions, simpler single-tx approval patterns. Design decisions: when to show gas savings from transient storage vs traditional storage, whether to surface this as a 'gas optimized' badge on protocols using it, no direct UI needed but affects gas estimation accuracy.","hasDetailedContent":true,"content":{"id":"EIP-1153","summary":"EIP-1153 introduced transient storage - data that exists only for a single transaction and is automatically cleared afterward. This is much cheaper than regular storage for temporary values like reentrancy locks. For users, this means lower gas costs on DeFi operations that use callbacks and complex multi-step transactions.","applicability":{"whenToUse":["Your product addresses: temporary data was expensive to store.","Your product addresses: callback patterns wasted gas.","The flow should deliver: transient storage costs ~100 gas for same operation.","Fee screens need estimates, speed options, and plain-language breakdowns."],"whenToAvoid":["Show \"Optimized\" badge and savings amount.","Show \"Saved $X vs legacy\" when meaningful.","Just show \"Gas Optimized\" or \"Efficient\" badge.","No token balances, swaps, lending, or yield flows appear in the product."]},"designerTakeaways":["You can design UI that delivers transient storage costs ~100 gas for same operation.","You can design UI that delivers transient storage auto-clears, no cleanup cost.","You can design UI that delivers pass data between calls cheaply via transient storage."],"problemsSolved":[{"problem":"Temporary data was expensive to store","oldWay":"Reentrancy locks cost 20,000 gas to set, 5,000 to clear","newWay":"Transient storage costs ~100 gas for same operation","impact":"high"},{"problem":"Callback patterns wasted gas","oldWay":"Flash loans and callbacks stored then deleted state","newWay":"Transient storage auto-clears, no cleanup cost","impact":"high"},{"problem":"Complex transactions were expensive","oldWay":"Multi-step DeFi needed multiple storage writes","newWay":"Pass data between calls cheaply via transient storage","impact":"medium"},{"problem":"Reentrancy protection added significant gas overhead","oldWay":"Every protected function paid storage costs","newWay":"Near-free reentrancy guards","impact":"medium"}],"uxPatterns":[{"name":"Gas Savings Display","description":"Show users when transient storage reduces their costs","mockup":"concept/gas-abstraction","userFlow":["User sets up flash loan strategy","Gas estimated with transient storage optimizations","Savings shown compared to legacy approach","User sees net profit including optimized gas","Execute with confidence in lower costs"]},{"name":"DeFi Action Breakdown","description":"Show gas breakdown including transient storage benefits","mockup":"concept/one-click-swap","userFlow":["User views transaction details","Gas breakdown shows individual costs","Transient storage optimizations highlighted","Total cost displayed","User understands where gas goes"]},{"name":"Protocol Efficiency Badge","description":"Show which protocols use gas-efficient patterns","mockup":"concept/one-click-swap","userFlow":["User comparing DEX options","Optimized protocols marked","Gas costs clearly compared","User can factor efficiency into choice"]}],"uiComponents":[{"name":"GasSavingsBadge","description":"Shows when transaction benefits from EIP-1153","states":["optimized","standard","unknown"],"props":["savingsAmount","savingsPercent","showTooltip"]},{"name":"GasBreakdownList","description":"Itemized gas costs with optimization highlighting","states":["loading","loaded","error"],"props":["items[]","total","optimizations[]"]},{"name":"ProtocolEfficiencyBadge","description":"Indicates protocol uses gas-efficient patterns","states":["optimized","standard"],"props":["optimizations[]","tooltip"]}],"antiPatterns":[{"pattern":"Hiding gas optimization benefits","why":"Users don't know they're getting better deal","instead":"Show \"Optimized\" badge and savings amount","severity":"medium"},{"pattern":"Not comparing to legacy costs","why":"Users can't appreciate the improvement","instead":"Show \"Saved $X vs legacy\" when meaningful","severity":"low"},{"pattern":"Over-explaining technical details","why":"Users don't need to know about TSTORE/TLOAD opcodes","instead":"Just show \"Gas Optimized\" or \"Efficient\" badge","severity":"low"}],"onMonad":[{"aspect":"Already Low Gas Costs","ethereum":"Transient storage savings very noticeable","monad":"Gas already cheap, savings less dramatic","designImplication":"Focus on speed benefits rather than cost savings"},{"aspect":"Transaction Throughput","ethereum":"Cheaper callbacks mean more complex txs viable","monad":"Already supports complex transactions efficiently","designImplication":"Transient storage still helps but impact less visible to users"},{"aspect":"DeFi Patterns","ethereum":"Flash loans much cheaper with EIP-1153","monad":"Same patterns work, optimizations compounded","designImplication":"Monad DeFi protocols should still use transient storage"}],"relatedStandards":[{"id":"ERC-3156","relationship":"Flash loans benefit significantly from transient storage for callbacks"},{"id":"EIP-1559","relationship":"Base fee + EIP-1153 together make DeFi more predictable and cheaper"},{"id":"ERC-4337","relationship":"Account abstraction operations can use transient storage for validation data"}]},"sources":[{"label":"Official specification","url":"https://eips.ethereum.org/EIPS/eip-1153","type":"official-spec"},{"label":"Discussion","url":"https://ethereum-magicians.org/search?q=EIP-1153","type":"discussion"}],"urls":{"canonical":"https://www.eipsfordesigners.com/standards/EIP-1153","markdown":"https://www.eipsfordesigners.com/standards/EIP-1153/content.md","agent":"https://www.eipsfordesigners.com/standards/EIP-1153/agent.md","api":"https://www.eipsfordesigners.com/api/standards/EIP-1153","official":"https://eips.ethereum.org/EIPS/eip-1153","discussion":"https://ethereum-magicians.org/search?q=EIP-1153"},"freshness":{"lastReviewed":"2026-04-05","lastUpdated":"2026-04-05"}}