A javascript
library to interact with the a Metamask based Ethereum wallet. It extracts all the complexity from setting up, maintaining and interacting with it, while providing you with a predictable interface.
npm install ethers @purser/metamask
import { open } from '@purser/metamask'
const wallet = await open();
console.log(wallet); // { address: '...', chainId: '...', publicKey: '...' }
You can find more in-depth description for this module's API in the purser docs.
This package is part of the purser monorepo package.
Please read our Contributing Guidelines for how to get started.
The @purser/metamask
library along with the whole purser monorepo are MIT licensed.