Interact with web3 dapps using the WalletChan browser extension via Chrome CDP. Use when the user asks to connect a wallet, swap tokens, supply/deposit to DeFi protocols, sign messages, view balances on-chain, or perform any blockchain transaction through a dapp in the browser. Requires Chrome with remote debugging and the WalletChan extension installed.
Control the WalletChan browser extension to interact with any web3 dapp via Chrome DevTools Protocol (CDP).
--remote-debugging-port=9222)⚠️ IMPORTANT — Tell the user:
The user needs Chrome running with remote debugging. Example launch script:
"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" \
--remote-debugging-port=9222 \
--user-data-dir="$HOME/.walletchan-agent/chrome-profile" \
--no-first-run \
--no-default-browser-check
Adjust the path for the user's OS. The user-data-dir should be a dedicated profile with the WalletChan extension installed.
kofbkhbkfhiollbhjkbebajngppmpbgc (stable)chrome://extensions/ via CDP and read itThe extension's full-tab URL is: chrome-extension://<EXTENSION_ID>/index.html
Connect to Chrome using CDP on the configured port (default 9222). All interaction happens through browser automation — navigate tabs, click elements, read page content.
Always use CDP for tab control. Chrome sidepanels are NOT accessible via CDP, so WalletChan must be used in full-tab mode (open chrome-extension://<ID>/index.html in a tab).
Open the target dapp URL in a Chrome tab (e.g. app.aave.com, app.uniswap.org).
Click the dapp's "Connect Wallet" button and select "WalletChan" from the wallet list. Connection is instant — no popup or approval needed.
Perform the intended action: enter amounts, select tokens, click "Supply", "Swap", etc. This triggers a transaction or signature request in WalletChan.
Navigate to the WalletChan tab (chrome-extension://<ID>/index.html) so the request is visible. Always switch the visible/active tab — the user can only see the active tab, so switch to whichever tab you're working on.
WalletChan has an auto-lock feature — the wallet locks after inactivity. Before confirming any request:
WalletChan provides two views for each request:
.base.eth), and .wei domains for addressesbytes) may be collapsed — expand for full detailVerify before confirming:
onBehalfOf addressAfter confirming, switch back to the dapp tab and verify the result:
Never assume success — always check actual state changes on the dapp.