1.0.0 • Published 2 years ago

matrix-world-wallet-sdk v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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