Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@3swallet.js/connectors

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@3swallet.js/connectors

Connectors for 3S Wallet supported third-parties: - [web3-react](https://github.com/Uniswap/web3-react) - [wagmi](https://wagmi.sh/) - [web3-onboard](https://github.com/blocknative/web3-onboard)

latest
npmnpm
Version
1.0.15
Version published
Weekly downloads
44
214.29%
Maintainers
1
Weekly downloads
 
Created
Source

@3swallet.js/connectors

Connectors for 3S Wallet supported third-parties:

  • web3-react
  • wagmi
  • web3-onboard

For more details, read the documentation

Installation

  • yarn:
yarn add @3swallet.js/connectors
  • npm:
npm install @3swallet.js/connectors

Quick start

  • web3-react
import { Web3ReactConnector } from '@3swallet.js/connectors'
import { useWeb3React } from '@web3-react/core';

const wallet3s = new Web3ReactConnector({
  rpc: { [1]: `https://mainnet.infura.io/v3/${process.env.INFURA_KEY}` },
  chainId: 1,
});

const connectors = {wallet3s}

const { active } = useWeb3React();

const setProvider = (type) => {
  window.localStorage.setItem('provider', type);
};

const connect = () => {
  activate(connectors.wallet3s);
  setProvider('wallet3s');
};

  • Wagmi
import { WagmiConnector } from '@3swallet.js/connectors'

FAQs

Package last updated on 17 Oct 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