Neighbourhood Party Manager

    @makerdao/dai-plugin-walletlink

    0.0.9 • Public • Published

    dai-plugin-walletlink

    A Dai.js plugin for using Coinbase WalletLink in a browser environment.

    Example usage

    import WalletLinkPlugin from '@makerdao/dai-plugin-walletlink';
    import Maker from '@makerdao/dai';
     
    const maker = await Maker.create('http', {
      plugins: [WalletLinkPlugin],
      accounts: {
        myWalletLink1: { type: 'walletlink' }
      }
    });
     
    // this will not resolve until the account is set up
    await maker.authenticate();
     
    // or you can defer setting the account up until later
    await maker.addAccount('myWalletLink2', { type: 'walletlink' });

    Using the optional address callback

    await maker.addAccount('myWalletLink', {
      type: 'walletlink',
      callback: address => {
        //e.g. for analytics
        console.log('My WalletLink address', address);
      }
    });

    Keywords

    none

    Install

    npm i @makerdao/dai-plugin-walletlink

    DownloadsWeekly Downloads

    1

    Version

    0.0.9

    License

    MIT

    Unpacked Size

    6.08 kB

    Total Files

    5

    Last publish

    Collaborators

    • tyler17
    • rafinskipg
    • adamgoth
    • b-pmcg
    • krzkaczor