Transaction Simulation
Web3 / wallets security
A wallet security feature that executes a pending transaction against the current blockchain state in a sandboxed environment before the user signs and submits it, displaying a precise preview of all state changes including token balances gained and lost, approvals granted, and smart contracts called, so the user can verify the outcome matches their expectations. Without simulation, users sign transactions based only on what a dApp's interface tells them will happen, which may not match what the transaction actually does, a vector exploited by phishing sites that display legitimate-looking interfaces for malicious contracts. Transaction simulation queries the current chain state, runs the EVM computation, and surfaces a human-readable summary of every meaningful change that will occur if the transaction is broadcast, allowing users to catch discrepancies between expected and actual behavior before committing irreversibly. Example: Rabby Wallet's transaction simulation became the feature most cited by security-conscious DeFi users as a reason to switch from MetaMask, which did not offer simulation by default. When a phishing site attempted to trick a user into approving an unlimited token spend to a malicious contract, Rabby's simulation would show the exact approval being granted and flag the destination address as unverified, while a non-simulating wallet would show only the dApp's interface description of the action. Why it matters for Web3: Transaction simulation addresses a fundamental asymmetry in DeFi security: smart contracts can do exactly what they are programmed to do regardless of what an interface says, and malicious contracts exploit the gap between user perception and actual transaction effects. By closing this gap with pre-signing visibility, simulation has demonstrably prevented losses from common attack vectors and has become an expected feature of security-conscious wallets, raising the bar for the entire wallet ecosystem.
Explore the full Web3 Glossary — 2,000+ expert-curated definitions. Need guidance? Talk to our consultants.