ChainXray

A Web3 debugging workbench to intercept wallet requests and inspect transaction execution.

ChainXray

Created At

ETHGlobal Mumbai

Project Description

ChainXray is an open-source Windows desktop debugging workbench for Web3 developers and security researchers. Inspired by Burp Suite’s interception workflow, it focuses on supported requests passing between dapps and browser wallets.

Developers can hold a request before wallet approval, inspect its method and parameters, edit supported fields, then forward or drop it. Captured transactions can also be copied to Repeater for isolated local testing.

Request Flow connects the originating dapp, intercepted request, wallet and destination contract. Once the wallet returns a transaction hash, ChainXray automatically tracks receipts, execution status, gas usage and emitted events. Compatible RPC providers enable a nested contract execution tree with available decoded functions and revert details.

The Uniswap Trading API integration provides read-only reference quotes that developers can associate with captured requests for manual comparison. The Arkiv integration lets users preview and publish sanitized observations as wallet-owned entities on Rabdi, then query them back without relying on a ChainXray-hosted database.

Raw captures remain in a local workspace. Previously recorded requests, receipts and traces remain inspectable offline. ChainXray helps developers distinguish wallet rejection, contract execution failures and RPC limitations within one debugging workflow.

How it's Made

ChainXray combines a Tauri desktop shell, a React and TypeScript interface, and a bundled Node.js engine. The desktop application communicates with an authenticated local API, while SQLite stores workspace evidence. Managed Chromium includes MetaMask and the ChainXray browser extension.

The extension hooks supported injected wallet providers and MetaMask SDK connections. A key implementation challenge was that Uniswap’s MetaMask SDK connection bypassed the conventional window.ethereum request path. We added an SDK-specific adapter to hold those requests and correlate forwarding decisions with wallet outcomes.

When a supported wallet returns a transaction hash, the engine retrieves the receipt and attempts contract tracing. It supports Geth-style debug_traceTransaction and a trace_transaction fallback, converting flat trace records into a nested execution tree. Viem handles Ethereum data encoding and supported ABI decoding. Anvil, Forge and Solidity tooling provide the isolated local lab.

The Uniswap integration calls the Trading API quote endpoint, stores the reference response locally and optionally links it to a capture. It does not sign or submit swaps.

Using @arkiv-network/sdk, ChainXray publishes an allowlisted protocol, category and summary to Rabdi as wallet-owned entities with seven-day expiration. The application also queries those entities, completing a user-visible write-and-read workflow. Raw requests, signatures and credentials are excluded from the public observation.

For CROPS, the architecture keeps capture storage and saved-evidence inspection local, without requiring a ChainXray-hosted service. Live dapps, RPC reads and optional external integrations retain their network dependencies.

background image mobile

Join the mailing list

Get the latest news and updates