Connect to a msafe account

const msafeAccount = await msafe.connect()

Connect to the MSafe account.

connect returns an account object representing the account with multi-sig format. The multi-sig format conforms with the multi-sig account model defined in Aptos dApp API guide.

export interface Account {
    publicKey: string[];
    address: string;
    authKey: string;
    minKeysRequired: number;

In the current implementation, accounts are always connected. Disconnect is not supported.


import { MSafeWallet } from "msafe-wallet";

const msafe = await;
const account = await msafe.connect(); 
// {publicKey: string[], address: string, authKey: string, minKeysRequired: number}
await msafe.isConnected(); 
// true

Last updated