This example project demonstrates how to integrate MetaMask into a SvelteKit application. It showcases the ability to connect a MetaMask wallet, listen for account changes, and persist state between sessions. This example is built upon experiences from working at MetaMask, and it aims to serve as a quick and efficient way to bootstrap your SvelteKit Web3 applications.
Checks if MetaMask is installed Prompts the user to connect their MetaMask wallet Displays the connected account address Keeps track of account changes in real-time Saves wallet state to local storage
yarn install or npm install or pnpm install or bun installyarn dev, or npm run dev or pnpm dev or bun dev