Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

MetaMask Embedded Wallets — Vanilla JS Quick Start

Plain JavaScript (Vite) example using MetaMask Embedded Wallets (powered by Web3Auth) on EVM chains. No framework — just @web3auth/modal instantiated directly. Use this as a reference for integrations in environments without a framework (or as the foundation for any bundler-based setup).

Prerequisites

  • Node.js 20+
  • npm
  • A Client ID from the Dashboard

Setup

1. Clone the repository

git clone https://github.com/Web3Auth/web3auth-examples.git
cd web3auth-examples/quick-starts/vanillajs-quick-start

2. Install dependencies

npm install

3. Set your Client ID

Open src/main.js and replace the placeholder clientId value with your own Client ID from the Dashboard.

4. Run the application

npm run dev

Visit http://localhost:5173 in your browser.

Use Sapphire Devnet (the default) for local development. Sapphire Mainnet does not allow localhost.

Resources

License

MIT