@etherspot/sdk-walletconnect-provider
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.0-alpha.2 • Public • Published

    ETHERspot sdk WalletConnect provider

    NPM version MIT licensed

    Installation

    $ npm i @etherspot/sdk-walletconnect-provider -S

    Usage

    import WalletConnect from '@walletconnect/client';
    import QRCodeModal from '@walletconnect/qrcode-modal';
    import { WalletConnectProvider } from '@etherspot/sdk-walletconnect-provider';
    import { Sdk } from 'etherspot';
     
    async function main() {
      // see: https://docs.walletconnect.org/quick-start/dapps/client#initiate-connection
      const walletConnect = new WalletConnect({
        bridge: 'https://bridge.walletconnect.org',
        qrcodeModal: QRCodeModal,
      });
     
      if (!walletConnect.connected) {
        await walletConnect.createSession();
      }
     
      const walletProvider = new WalletConnectProvider(walletConnect);
     
      const sdk = new Sdk(walletProvider);
    }
     
    main().catch(console.error);
     

    License

    MIT

    Keywords

    none

    Install

    npm i @etherspot/sdk-walletconnect-provider

    DownloadsWeekly Downloads

    2

    Version

    1.0.0-alpha.2

    License

    MIT

    Unpacked Size

    7.78 kB

    Total Files

    7

    Last publish

    Collaborators

    • jegorsidorenko
    • staszek