0.1.5-dev.15 • Published 8 months ago

wealth-wallet-sdk v0.1.5-dev.15

Weekly downloads
-
License
MIT
Repository
-
Last release
8 months ago

Wealth Wallet Sdk

Install

yarn install

Import

import { WealthWallet } from 'wealth-wallet-sdk';

From version 0.1.5-dev.7 you will need to pass a callback funtion as third arguement to the initialize method. This function will be responsible to managing the state cleanup as the page reload won't happen anymore.

From version 0.1.5-dev.14 you will need to pass only 2 arguments in the fourth callback which is rpc url(provider) and userAddress and now in the openWallet function and in the sendTransaction function you have to pass appPublicKey instead of the refreshToken and token and we also add one event listner sessionExpired which is triggred when the session is expired. Note--> From nowOnwards we do not provide linkToken and token to the sdk and also not provide to the sample app.

wealthWallet.initialize(
      "staging",
      (payload) => {
        // payload = {success: true, message: "Wallet has been initialized"}
        // payload = {success: false, message: "Wallet initialization failed"}
      },
      () => {
        // listener to recieve the app widget logout event
        // add logic here to perform some action on wallet logout like loging out the user
      },
      ( provider, userAddress) => {
        console.log({ provider, userAddress });
      }
    );
0.1.5-dev.15

8 months ago

0.1.5-dev.12

9 months ago

0.1.5-dev.3

11 months ago

0.1.5-dev.11

9 months ago

0.1.5-dev.14

9 months ago

0.1.5-dev.13

9 months ago

0.1.5-dev.10

10 months ago

0.1.5-dev.9

10 months ago

0.1.5-dev.8

10 months ago

0.1.5-dev.7

10 months ago

0.1.5-dev.6

10 months ago

0.1.5-dev.5

11 months ago

0.1.5-dev.4

11 months ago

0.1.5-dev.2

1 year ago

0.1.5-dev

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago