npm.io
1.0.0 • Published 4 years ago

matrix-world-wallet-sdk

Licence
ISC
Version
1.0.0
Deps
19
Size
3.9 MB
Vulns
21
Weekly
0

Interface

Quick Overview

import { WalletService } from 'matrix-world-wallet-sdk';

const walletService = new WalletService();

Connect

import { ChainType } from 'matrix-world-wallet-sdk';

/** async connect flow **/
walletService.connect(ChainType.FLOW)

/** async connect rinkeby **/
walletService.connect(ChainType.RINKEBY)

/** async connect eth **/
walletService.connect(ChainType.ETHEREUM)
Sign
/** async **/
walletService.sign()
RemoveLocalSignInfo
walletService.removeLocalSignInfo()
GetWalletInfo
const walletInfo = await walletService.getWalletInfo();
Wallet connect status
walletService.connectStatus