evm transaction dry run

    by Elyas Shukri Elmi

    1

    Simulate and analyze EVM transactions on local forks to verify state changes and slippage before broadcasting.

    Secure checkout via Stripe

    0 installsSecurity scanned

    Works with the AI tools you already use

    CClaude CodeCCursorCCodex CLIGGitHub CopilotGGemini CLIVVS CodeWWindsurf+15 more

    See it in action

    You say

    Dry-run this tx: swap 1 ETH for USDC on Uniswap V2. Verify the calldata and check if it reverts at the current block. Use RPC https://eth-mainnet.example.com.

    Your agent does

    Verdict: RISK Block simulated at: 19823456 What happened: Transaction succeeded, but output was 2% below market rate due to slippage settings. What can still change: Front-running in the mempool or price impact from other swaps before broadcast.

    What you get

    Simulate multi-step DeFi interactions before signing live transactions.Identify hidden fees or excessive token approvals in raw calldata.Verify transaction success at a specific block height to ensure reproducibility.Detect sandwich attack exposure and slippage risks for DEX swaps.

    About this skill

    The problem

    Sending transactions blindly to the mempool is a gamble. Relying on wallet simulations is often insufficient because they fail to account for the gap between a static snapshot and a live broadcast environment.

    What it does

    • Simulates specific EVM transactions on a mainnet fork at a precise block height.
    • Decodes raw calldata to verify intended functions, addresses, and parameters.
    • Identifies state changes including balance shifts, token approvals, and internal contract calls.
    • Detects sandwich attack risks, high slippage, and unexpected intermediary redirects.
    • Executes multi-step scripts (e.g., approve then swap) using Forge to test complex sequences.

    Frameworks & tools

    Foundry (Anvil, Cast, Forge) and EVM-compatible RPC endpoints.

    Why this beats prompting it yourself

    Generic prompts often hallucinate CLI flags or fail to account for environment variables that can trigger accidental live broadcasts. This skill enforces strict protocols for block-height reproducibility and explicitly identifies "sim-to-broadcast" risks that standard AI responses overlook.

    Use cases

    • Test a complex DeFi swap for hidden fees or high slippage before signing.
    • Verify that a contract approval is scoped correctly and not over-permissioned.
    • Dry-run an agent-generated transaction to ensure it won't revert on-chain.
    • Analyze a transaction's execution trace to uncover unexpected internal hops.

    Known limitations

    Simulation results are snapshots. They cannot guarantee outcome if mempool conditions, oracle prices, or proxy logic changes before the real broadcast. Requires Foundry to be installed for full execution.

    How to install

    Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    30-day refund

    Not a fit? Get your money back

    Trust & safety

    Security scanned

    Verified clean today

    Listedtoday

    Creator

    Frequently Asked Questions

    Popular in Trading