account

Get MSafe account

const account = await msafe.account();

account is used to get current msafe account. It communicate returns 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;
}

Example:

account
import { MSafeWallet } from "msafe-wallet";

const msafe = await MSafeWallet.new();
const account:Account = await msafe.account();

Last updated