@arkane-network/safe-apps-web3modal
TypeScript icon, indicating that this package has built-in type declarations

0.5.1-develop.0 • Public • Published

Safe Apps Web3Modal

This is a wrapper around web3modal that adds Safe Apps support.

If the app using the wrapper is run as a Safe App the connect method will automatically connect to the Safe App.

How to use

  • Install the package and its dependencies
npm i @gnosis.pm/safe-apps-web3modal @gnosis.pm/safe-apps-sdk web3modal 

yarn add @gnosis.pm/safe-apps-web3modal @gnosis.pm/safe-apps-sdk web3modal 
import { SafeAppWeb3Modal } from 'safe-apps-web3modal';
const modal = new SafeAppWeb3Modal(web3modalOptions);
  • Check if it can auto-connect to immediately connect
if (await modal.canAutoConnect()) {
    provider = await modal.requestProvider();
}

/@arkane-network/safe-apps-web3modal/

    Package Sidebar

    Install

    npm i @arkane-network/safe-apps-web3modal

    Weekly Downloads

    1

    Version

    0.5.1-develop.0

    License

    MIT

    Unpacked Size

    6.02 kB

    Total Files

    8

    Last publish

    Collaborators

    • venly_io
    • davyvanroy
    • nipe
    • alpacoder