VisualizeUniswapV4

Secure transaction parser for Uniswap V4. Decodes singleton swaps & hooks for clear, safe signing.

VisualizeUniswapV4

Created At

ETHGlobal Buenos Aires

Winner of

Anchorage Digital

Anchorage Digital - Utilize VisualSign for dapps

Project Description

This project integrates Uniswap V4 support into VisualSign, a secure transaction parsing framework. Uniswap V4's singleton architecture and custom hooks make raw transactions efficient but opaque and dangerous for users to blind-sign. We implemented a specialized Rust parser that decodes V4's IPoolManager interactions. It transforms opaque hex calldata into human-readable visualizations, displaying exact input/output amounts, slippage protection, fee tiers, and hook addresses. This empowers users to verify critical transaction details on their hardware wallet or secure display before signing, mitigating blind-signing risks in the new V4 ecosystem.

How it's Made

ABI Decoding: Used alloy-sol-types to reverse-engineer IPoolManager calls (swap, initialize) from raw calldata. Visualization Engine: Created V4PoolManagerVisualizer to map decoded data to SignablePayloadField UI components. This handles math for sqrtPriceX96 conversion and formats token amounts using a token registry. Architecture: The parser operates in a TEE-ready environment, receiving unsigned bytes via gRPC and returning structured metadata. Testing: Validated against cast generated V4 payloads to ensure pixel-perfect decoding of complex multiswap paths.

background image mobile

Join the mailing list

Get the latest news and updates

VisualizeUniswapV4 | ETHGlobal