Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@futureverse/wallet-signer-etherjs

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@futureverse/wallet-signer-etherjs

Futureverse Wallet signer for Ether.js

latest
npmnpm
Version
1.0.1
Version published
Maintainers
2
Created
Source

Futureverse Wallet Signer for Ether.js

This is a signer for Ether.js that can be used with any provider.

Installation

NPM:

    npm install @futureverse/wallet-signer-etherjs --save

Yarn:

    yarn add @futureverse/wallet-signer-etherjs

Usage

import { getDefaultProvider } from "ethers"
import { FutureverseWalletSigner } from '@futureverse/wallet-signer'

const provider = getDefaultProvider()
const signer= new FutureverseSigner(provider)

Changing provider

You can change the provider at any time by calling connect on the signer.

const signer= new FutureverseSigner(oldProvider)
signer.connect(newProvider)

Auto connect

Enable auto connection on whitelisted domains

    const signer= new FutureverseSigner(provider, true)

Futureverse Wallet

By default, this signer will use the Futureverse Wallet, however you change this by initiliasing the FutureverseWalletSigner with a different URL:

    const signer= new FutureverseSigner(provider, false, 'https://wallet.your-implementation.com')

Requirements

  • A provider is always required by default

FAQs

Package last updated on 03 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts