Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

Latest commit

 

History

History
40 lines (25 loc) · 1.38 KB

README.md

File metadata and controls

40 lines (25 loc) · 1.38 KB

This package allows you to use any purser wallet as an ethers.js signer.

Installation

npm install ethers @purser/signer-ethers

Quick Usage (using a MetaMask purser wallet)

import { getDefaultProvider } from "ethers";
import { create } from "@purser/metamask";
import { EthersSigner } from "@purser/signer-ethers";

const provider = getDefaultProvider("ropsten");

const initSigner = async () => {
  const wallet = await create();
  const signer = new EthersSigner({ purserWallet: wallet, provider });
};

You can then use the signer to connect to Ethereum contracts with ethers.

Documentation

You can find more in-depth description for this module's API in the purser docs.

Contributing

This package is part of the purser monorepo package.

Please read our Contributing Guidelines for how to get started.

License

The @purser/core library along with the whole purser monorepo are MIT licensed.