@purser/signer-ethers
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

@purser/signer-ethers

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.

/@purser/signer-ethers/

    Package Sidebar

    Install

    npm i @purser/signer-ethers

    Weekly Downloads

    3

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    38.2 kB

    Total Files

    20

    Last publish

    Collaborators

    • chmanie
    • rdig
    • area