matrix-world-wallet-sdk
v1.0.0
Published
## Quick Overview
Downloads
2
Readme
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