unffold — Web3 inspection from the terminal and Chrome
npm · Chrome extension · privacy policy
This is the CLI. Paste a contract address or transaction hash and inspect proxies, tokens, NFTs, vaults, traces, storage, events, source metadata, and risk surface from the terminal.
This is the extension. Use it for quick checks while browsing explorers, dapps, token pages, and NFT collections.
- Detects contract addresses and transaction hashes on the active page.
- Auto-selects the network from supported explorers.
- Modes:
Analyze,Token,NFT,Proxy,Vault,Game,Security, andTrace. - Shows a compact Risk Summary, warnings, checklist, facts, explorer links, copyable summary, and visible retryable errors.
- NFT mode reads
contractURI,tokenURI(0/1), normalizesipfs:///ar://, and renders the preview image when metadata exposesimageorimage_url. - Settings stay local in
chrome.storage.local.
npm install -g unfold-evmRequires Node.js 20+.
# fingerprint a contract
unffold 0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0
# interactive mode — pick address and action from menus
unffoldAfter the fingerprint, unffold drops into an interactive menu so you can keep exploring without retyping the address.
- Fingerprint — name, standards (ERC-20, ERC-721, ERC-4626 …), compiler, license, balance, total supply
- Proxy analysis — detects EIP-1967 Transparent, UUPS, Beacon, Diamond, Minimal Proxy; shows implementation address, admin, and upgrade history
- Diff — compare ABI and storage layout between two contracts or two proxy implementations
- Diamond facets — enumerate all EIP-2535 facets and map selectors to function names
- Trace — decode calldata and events from any transaction; auto-resolves proxy implementation ABIs
- Inheritance tree — full parent chain parsed from Solidity source
- Security surface — upgradeability,
selfdestruct,tx.origin,delegatecall, reentrancy guards, unprotected privileged functions - Read state — call any
viewfunction by name with arguments - Watch events — stream decoded events live to the terminal
- Inspect storage — read any slot by index, variable name, or mapping key
- Export — Foundry fork test stub, ABI JSON, full contract JSON
unffold <address> [options]
unffold <command> [args]| Option | Description |
|---|---|
--chain <name> |
Target chain (default: mainnet) |
--rpc <url> |
Override RPC for this run |
--no-menu |
Do not open the interactive menu after inspect |
--quiet |
Hide banner and inspect progress lines |
--simple |
Print a short non-technical summary |
--proxy |
Proxy analysis + upgrade history |
--tree |
Inheritance tree + detected standards |
--security |
Security surface scan |
--read "<fn(args)>" |
Call a view function |
--watch <event|all> |
Stream live events |
--storage <slot|name|mapping> |
Read a storage slot |
--export <foundry|abi|json> |
Export artifacts |
--output <path> |
Destination directory for --export |
--facets |
Enumerate Diamond (EIP-2535) facets |
--json |
Machine-readable output, no banner or menu |
| Command | Description |
|---|---|
unffold diff <addr1> <addr2> |
Compare ABI and storage between two contracts |
unffold trace <txhash> |
Decode calldata and events of a transaction |
unffold analyze <address> |
Auto-detect token, NFT, vault, game, proxy, or generic contract profile |
unffold token <address> |
ERC-20-focused token metadata and risk summary |
unffold proxy <address> |
Proxy upgradeability and admin risk summary |
unffold vault <address> |
ERC-4626-focused vault metadata and risk summary |
unffold nft <address> |
NFT collection metadata and risk summary |
unffold game <address> |
Game / on-chain app controls and risk summary |
unffold config init |
Setup wizard for ~/.unfold/config.json |
unffold config show |
Print current config |
unffold config set <key> <value> |
Edit a config value without the wizard |
unffold config path |
Print the config file path |
analyze, token, proxy, vault, nft, and game support --json and include
a common report object designed for UI clients such as the browser extension.
# proxy deep-dive on wstETH
unffold 0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0 --proxy
# diff two USDC implementations to audit an upgrade
unffold diff 0xa2327a938Febf5FEC13baCFb16Ae10EcBc4cbDCF \
0x43506849d7c04f9138d1a2050bbf3a0c054402dd
# decode a transaction — works through proxies
unffold trace 0x149589da5cb6a163a7a06aa534c08e84ee2acf411a82b5d230d4b9627acfba86
# enumerate diamond facets on Polygon
unffold 0x86935F11C86623deC8a25696E1C19a8659CbF95d --chain polygon --facets
# call totalSupply on USDC (Base)
unffold 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 --chain base --read "totalSupply()"
# read a mapping slot
unffold 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 \
--storage "balanceOf[0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045]"
# stream Transfer events live
unffold 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 --watch Transfer
# token-focused summary for non-technical review
unffold token 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 --chain mainnet
# auto-detect the best profile
unffold analyze 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 --chain mainnet
# proxy upgradeability summary
unffold proxy 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 --chain mainnet
# ERC-4626 vault summary
unffold vault 0x83F20F44975D03b1b09e64809B757c47f942BEeA --chain mainnet
# NFT collection summary
unffold nft 0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d --chain mainnet
# export a Foundry fork test to a specific directory
unffold 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 --export foundry --output ./testmainnet · arbitrum · base · bsc · ronin · abstract · optimism · polygon · zksync · sepolia · holesky
Source lookups use Etherscan API V2. Without an API key, unffold falls back to Sourcify automatically — no key required for most verified contracts.
To use your own Etherscan key:
# one-off
export ETHERSCAN_API_KEY=your_key_here
# or persist it
unffold config initunffold config init includes an onboarding prompt with a direct link to the
Etherscan API dashboard: https://etherscan.io/apidashboard
You can also manage config directly without the wizard:
unffold config set etherscanApiKey YOUR_KEY
unffold config set defaultChain base
unffold config set rpcOverrides.mainnet https://eth.llamarpc.com
unffold config show~/.unfold/config.json shape:
{
"etherscanApiKey": "YOUR_KEY",
"defaultChain": "mainnet",
"rpcOverrides": {
"mainnet": "https://eth.llamarpc.com"
}
}ETHERSCAN_API_KEY env var takes precedence over the config file.
The extension does not send data to a Unffold server. It uses:
chrome.storage.localfor the Etherscan API key, default network, and UI language.- The active tab only to scan visible text/links for addresses and tx hashes.
- Public RPCs, Etherscan V2-compatible APIs, Sourcify, IPFS, and Arweave for contract and NFT metadata.
No backend is required.
See extension/PRIVACY.md.
PRs and issues are welcome.
git clone https://github.com/alva-p/unffold
cd unffold
npm install
npm run build
npm testMIT — see LICENSE

