How nikitavr/burnmywallet works
Burn My Wallet is a web3 kill switch: a user connects the compromised wallet and mints a soul-bound burned marker; visitors can check addresses and browse burned wallets. The frontend coordinates wallet and network state, calls API routes for lookup, and submits the mint through the wallet client to the contract. The README also documents a public Graph Protocol subgraph and an XMTP chat integration for checking conversation partners. The available excerpts show frontend calls and mint wiring, but not the API implementations’ data sources or the external integrations’ internals.
Main entry points: _app.tsx App shell · Mint.tsx Burn wallet · useChain.ts Chain hook · NavBar.tsx Navigation and search
Components 18
Frontend experience
- App shell
frontend/basic/pages/_app.tsx - Navigation and search
frontend/basic/components/NavBar.tsx - Burn wallet
frontend/basic/components/landing/Mint.tsx - Address search
frontend/basic/components/landing/Search.tsx - Burned wallet viewer
frontend/basic/pages/viewer.tsx
Wallet and chain state
- Chain provider
frontend/basic/contexts/ChainProvider.tsx - Chain configuration
frontend/basic/contexts/chain.ts - Wallet client setup
frontend/basic/utils/wagmiClient.tsx - Chain hook
frontend/basic/hooks/useChain.ts
Burned wallet lookup
- Burn status hook
frontend/basic/hooks/useIsBurnedWallet.ts - Burned wallets hook
frontend/basic/hooks/useAllBurnedWallets.ts - Address status API
frontend/basic/pages/api/isBurned.ts - Burned wallets API
frontend/basic/pages/api/allBurned.ts - Burn status client
frontend/basic/utils/isBurned.ts
On-chain and integrations
- Burn marker contract
smart-contracts/contracts/BurnMyWallet.sol - Graph Protocol subgraph
- XMTP chat demo
Other components
- Wallet user
Connections 22
- Wallet user → App shell: uses
README.md - App shell → Navigation and search: renders
frontend/basic/pages/_app.tsx - App shell → Chain provider: provides state
frontend/basic/pages/_app.tsx - App shell → Wallet client setup: configures wallet
frontend/basic/pages/_app.tsx - Navigation and search → Chain hook: reads chain
frontend/basic/components/NavBar.tsx - Chain provider → Chain configuration: provides context
frontend/basic/contexts/ChainProvider.tsx - Chain hook → Chain configuration: reads context
frontend/basic/hooks/useChain.ts - App shell → Burn wallet: renders page
- Wallet user → Burn wallet: requests burn
README.md - Burn wallet → Chain hook: reads chain
frontend/basic/components/landing/Mint.tsx - Burn wallet → Burn status client: checks status
frontend/basic/components/landing/Mint.tsx - Burn status client → Address status API: requests status
- Burn wallet → Burn marker contract: calls safeMint
frontend/basic/components/landing/Mint.tsx - Navigation and search → Address search: routes search
frontend/basic/components/NavBar.tsx - Address search → Burn status client: checks status
frontend/basic/components/landing/Search.tsx - Address search → Burned wallets hook: loads wallet list
frontend/basic/components/landing/Search.tsx - Burned wallets hook → Chain hook: reads chain
frontend/basic/hooks/useAllBurnedWallets.ts - Burned wallets hook → Burned wallets API: requests wallet list
frontend/basic/hooks/useAllBurnedWallets.ts - Burn status hook → Chain hook: reads chain
frontend/basic/hooks/useIsBurnedWallet.ts - Burn status hook → Address status API: requests status
frontend/basic/hooks/useIsBurnedWallet.ts - Wallet user → Graph Protocol subgraph: queries data
README.md - XMTP chat demo → Graph Protocol subgraph: checks wallets
README.md