Ever wanted to know how to connect/disconnect/auto-connect and perform RPC requests with pure JavaScript?
This project demonstrates all this and more and was built in tandem with the article Use VanillaJS To Connect To MetaMask, Read From A Contract, & Write To A Contract.
Want to see how this work?
Repl.it VanillaJS Wallet Connection Demo
- nvm or node
v18.12.1
- pnpm
v7.15.0
Install dependencies:
pnpm install;
Start server:
pnpm run dev;
MIT