@web3-wallets-kit/unstoppable-connector

Package for connecting with Ethereum wallets for dApp

Usage no npm install needed!

<script type="module">
  import web3WalletsKitUnstoppableConnector from 'https://cdn.skypack.dev/@web3-wallets-kit/unstoppable-connector';
</script>

README

@web3-wallets-kit/unstoppable-connector

This provider uses OAuth

  • users must have a domain minted on Ethereum Mainnet
  • the application must be registered in Unstoppable Domains
  • to get UnstoppableConnector configuration parameters you need to set redirect settings in your personal account and generate ClientID and Secret

Installation

npm install @web3-wallets-kit/unstoppable-connector

Example

import { ConnectWalletConnector } from '@web3-wallets-kit/connect-wallet-connector';
import { InpageConnector } from '@web3-wallets-kit/inpage-connector';
import { UnstoppableConnector } from '@web3-wallets-kit/unstoppable-connector';

const connector = new UnstoppableConnector({
  clientOptions: {
    clientID: CLIENT_ID,
    clientSecret: CLIENT_SECRET,
    redirectUri: REDIRECT_URL,
  },
  connectors: {
    web3: new InpageConnector(),
    walletconnect: new ConnectWalletConnector({
      chainId: 1,
      rpc: {
        1: 'https://mainnet.mycustomnode.com',
      },
    }),
  },
});