Class AnyWalletState

Hierarchy

  • AnyWalletState

Constructors

Properties

activeAccount: null | Account
allWallets: {
    algosigner: {
        accounts: Account[];
        client: null | AlgoSignerClient;
        connect: ((p?) => Promise<Account[]>);
        connecting: boolean;
        disconnect: (() => Promise<void>);
        id: W_ID;
        initParams: boolean | ClientInitParams;
        inited: boolean;
        initing: boolean;
        isActive: boolean;
        isConnected: boolean;
        loadClient: (() => Promise<boolean>);
        metadata: ClientMetadata;
        reconnect: (() => Promise<void>);
        removeAccounts: (() => void);
        setAsActiveWallet: (() => void);
        signTransactions: ((transactions) => Promise<Uint8Array[]>);
        signing: boolean;
        unloadClient: (() => Promise<void>);
    };
    defly: {
        accounts: Account[];
        client: null | DeflyClient;
        connect: ((p?) => Promise<Account[]>);
        connecting: boolean;
        disconnect: (() => Promise<void>);
        id: W_ID;
        initParams: boolean | ClientInitParams;
        inited: boolean;
        initing: boolean;
        isActive: boolean;
        isConnected: boolean;
        loadClient: (() => Promise<boolean>);
        metadata: ClientMetadata;
        reconnect: (() => Promise<void>);
        removeAccounts: (() => void);
        setAsActiveWallet: (() => void);
        signTransactions: ((transactions) => Promise<Uint8Array[]>);
        signing: boolean;
        unloadClient: (() => Promise<void>);
    };
    exodus: {
        accounts: Account[];
        client: null | ExodusClient;
        connect: ((p?) => Promise<Account[]>);
        connecting: boolean;
        disconnect: (() => Promise<void>);
        id: W_ID;
        initParams: boolean | ClientInitParams;
        inited: boolean;
        initing: boolean;
        isActive: boolean;
        isConnected: boolean;
        loadClient: (() => Promise<boolean>);
        metadata: ClientMetadata;
        reconnect: (() => Promise<void>);
        removeAccounts: (() => void);
        setAsActiveWallet: (() => void);
        signTransactions: ((transactions) => Promise<Uint8Array[]>);
        signing: boolean;
        unloadClient: (() => Promise<void>);
    };
    inkey: {
        accounts: Account[];
        client: null | InkeyClient;
        connect: ((p?) => Promise<Account[]>);
        connecting: boolean;
        disconnect: (() => Promise<void>);
        id: W_ID;
        initParams: boolean | ClientInitParams;
        inited: boolean;
        initing: boolean;
        isActive: boolean;
        isConnected: boolean;
        loadClient: (() => Promise<boolean>);
        metadata: ClientMetadata;
        reconnect: (() => Promise<void>);
        removeAccounts: (() => void);
        setAsActiveWallet: (() => void);
        signTransactions: ((transactions) => Promise<Uint8Array[]>);
        signing: boolean;
        unloadClient: (() => Promise<void>);
    };
    mnemonic: {
        accounts: Account[];
        client: null | MnemonicClient;
        connect: ((p?) => Promise<Account[]>);
        connecting: boolean;
        disconnect: (() => Promise<void>);
        id: W_ID;
        initParams: boolean | ClientInitParams;
        inited: boolean;
        initing: boolean;
        isActive: boolean;
        isConnected: boolean;
        loadClient: (() => Promise<boolean>);
        metadata: ClientMetadata;
        reconnect: (() => Promise<void>);
        removeAccounts: (() => void);
        setAsActiveWallet: (() => void);
        signTransactions: ((transactions) => Promise<Uint8Array[]>);
        signing: boolean;
        unloadClient: (() => Promise<void>);
    };
    myalgo: {
        accounts: Account[];
        client: null | MyAlgoClient;
        connect: ((p?) => Promise<Account[]>);
        connecting: boolean;
        disconnect: (() => Promise<void>);
        id: W_ID;
        initParams: boolean | ClientInitParams;
        inited: boolean;
        initing: boolean;
        isActive: boolean;
        isConnected: boolean;
        loadClient: (() => Promise<boolean>);
        metadata: ClientMetadata;
        reconnect: (() => Promise<void>);
        removeAccounts: (() => void);
        setAsActiveWallet: (() => void);
        signTransactions: ((transactions) => Promise<Uint8Array[]>);
        signing: boolean;
        unloadClient: (() => Promise<void>);
    };
    pera: {
        accounts: Account[];
        client: null | PeraClient;
        connect: ((p?) => Promise<Account[]>);
        connecting: boolean;
        disconnect: (() => Promise<void>);
        id: W_ID;
        initParams: boolean | ClientInitParams;
        inited: boolean;
        initing: boolean;
        isActive: boolean;
        isConnected: boolean;
        loadClient: (() => Promise<boolean>);
        metadata: ClientMetadata;
        reconnect: (() => Promise<void>);
        removeAccounts: (() => void);
        setAsActiveWallet: (() => void);
        signTransactions: ((transactions) => Promise<Uint8Array[]>);
        signing: boolean;
        unloadClient: (() => Promise<void>);
    };
}

Type declaration

  • algosigner: {
        accounts: Account[];
        client: null | AlgoSignerClient;
        connect: ((p?) => Promise<Account[]>);
        connecting: boolean;
        disconnect: (() => Promise<void>);
        id: W_ID;
        initParams: boolean | ClientInitParams;
        inited: boolean;
        initing: boolean;
        isActive: boolean;
        isConnected: boolean;
        loadClient: (() => Promise<boolean>);
        metadata: ClientMetadata;
        reconnect: (() => Promise<void>);
        removeAccounts: (() => void);
        setAsActiveWallet: (() => void);
        signTransactions: ((transactions) => Promise<Uint8Array[]>);
        signing: boolean;
        unloadClient: (() => Promise<void>);
    }
    • Readonly accounts: Account[]
    • client: null | AlgoSignerClient
    • connect: ((p?) => Promise<Account[]>)
        • (p?): Promise<Account[]>
        • Parameters

          • Optional p: any

          Returns Promise<Account[]>

    • connecting: boolean
    • disconnect: (() => Promise<void>)
        • (): Promise<void>
        • Returns Promise<void>

    • id: W_ID
    • initParams: boolean | ClientInitParams
    • inited: boolean
    • initing: boolean
    • Readonly isActive: boolean
    • Readonly isConnected: boolean
    • loadClient: (() => Promise<boolean>)
        • (): Promise<boolean>
        • Returns Promise<boolean>

    • metadata: ClientMetadata
    • reconnect: (() => Promise<void>)
        • (): Promise<void>
        • Returns Promise<void>

    • removeAccounts: (() => void)
        • (): void
        • Returns void

    • setAsActiveWallet: (() => void)
        • (): void
        • Returns void

    • signTransactions: ((transactions) => Promise<Uint8Array[]>)
        • (transactions): Promise<Uint8Array[]>
        • Parameters

          • transactions: Uint8Array[]

          Returns Promise<Uint8Array[]>

    • signing: boolean
    • unloadClient: (() => Promise<void>)
        • (): Promise<void>
        • Returns Promise<void>

  • defly: {
        accounts: Account[];
        client: null | DeflyClient;
        connect: ((p?) => Promise<Account[]>);
        connecting: boolean;
        disconnect: (() => Promise<void>);
        id: W_ID;
        initParams: boolean | ClientInitParams;
        inited: boolean;
        initing: boolean;
        isActive: boolean;
        isConnected: boolean;
        loadClient: (() => Promise<boolean>);
        metadata: ClientMetadata;
        reconnect: (() => Promise<void>);
        removeAccounts: (() => void);
        setAsActiveWallet: (() => void);
        signTransactions: ((transactions) => Promise<Uint8Array[]>);
        signing: boolean;
        unloadClient: (() => Promise<void>);
    }
    • Readonly accounts: Account[]
    • client: null | DeflyClient
    • connect: ((p?) => Promise<Account[]>)
        • (p?): Promise<Account[]>
        • Parameters

          • Optional p: any

          Returns Promise<Account[]>

    • connecting: boolean
    • disconnect: (() => Promise<void>)
        • (): Promise<void>
        • Returns Promise<void>

    • id: W_ID
    • initParams: boolean | ClientInitParams
    • inited: boolean
    • initing: boolean
    • Readonly isActive: boolean
    • Readonly isConnected: boolean
    • loadClient: (() => Promise<boolean>)
        • (): Promise<boolean>
        • Returns Promise<boolean>

    • metadata: ClientMetadata
    • reconnect: (() => Promise<void>)
        • (): Promise<void>
        • Returns Promise<void>

    • removeAccounts: (() => void)
        • (): void
        • Returns void

    • setAsActiveWallet: (() => void)
        • (): void
        • Returns void

    • signTransactions: ((transactions) => Promise<Uint8Array[]>)
        • (transactions): Promise<Uint8Array[]>
        • Parameters

          • transactions: Uint8Array[]

          Returns Promise<Uint8Array[]>

    • signing: boolean
    • unloadClient: (() => Promise<void>)
        • (): Promise<void>
        • Returns Promise<void>

  • exodus: {
        accounts: Account[];
        client: null | ExodusClient;
        connect: ((p?) => Promise<Account[]>);
        connecting: boolean;
        disconnect: (() => Promise<void>);
        id: W_ID;
        initParams: boolean | ClientInitParams;
        inited: boolean;
        initing: boolean;
        isActive: boolean;
        isConnected: boolean;
        loadClient: (() => Promise<boolean>);
        metadata: ClientMetadata;
        reconnect: (() => Promise<void>);
        removeAccounts: (() => void);
        setAsActiveWallet: (() => void);
        signTransactions: ((transactions) => Promise<Uint8Array[]>);
        signing: boolean;
        unloadClient: (() => Promise<void>);
    }
    • Readonly accounts: Account[]
    • client: null | ExodusClient
    • connect: ((p?) => Promise<Account[]>)
        • (p?): Promise<Account[]>
        • Parameters

          • Optional p: any

          Returns Promise<Account[]>

    • connecting: boolean
    • disconnect: (() => Promise<void>)
        • (): Promise<void>
        • Returns Promise<void>

    • id: W_ID
    • initParams: boolean | ClientInitParams
    • inited: boolean
    • initing: boolean
    • Readonly isActive: boolean
    • Readonly isConnected: boolean
    • loadClient: (() => Promise<boolean>)
        • (): Promise<boolean>
        • Returns Promise<boolean>

    • metadata: ClientMetadata
    • reconnect: (() => Promise<void>)
        • (): Promise<void>
        • Returns Promise<void>

    • removeAccounts: (() => void)
        • (): void
        • Returns void

    • setAsActiveWallet: (() => void)
        • (): void
        • Returns void

    • signTransactions: ((transactions) => Promise<Uint8Array[]>)
        • (transactions): Promise<Uint8Array[]>
        • Parameters

          • transactions: Uint8Array[]

          Returns Promise<Uint8Array[]>

    • signing: boolean
    • unloadClient: (() => Promise<void>)
        • (): Promise<void>
        • Returns Promise<void>

  • inkey: {
        accounts: Account[];
        client: null | InkeyClient;
        connect: ((p?) => Promise<Account[]>);
        connecting: boolean;
        disconnect: (() => Promise<void>);
        id: W_ID;
        initParams: boolean | ClientInitParams;
        inited: boolean;
        initing: boolean;
        isActive: boolean;
        isConnected: boolean;
        loadClient: (() => Promise<boolean>);
        metadata: ClientMetadata;
        reconnect: (() => Promise<void>);
        removeAccounts: (() => void);
        setAsActiveWallet: (() => void);
        signTransactions: ((transactions) => Promise<Uint8Array[]>);
        signing: boolean;
        unloadClient: (() => Promise<void>);
    }
    • Readonly accounts: Account[]
    • client: null | InkeyClient
    • connect: ((p?) => Promise<Account[]>)
        • (p?): Promise<Account[]>
        • Parameters

          • Optional p: any

          Returns Promise<Account[]>

    • connecting: boolean
    • disconnect: (() => Promise<void>)
        • (): Promise<void>
        • Returns Promise<void>

    • id: W_ID
    • initParams: boolean | ClientInitParams
    • inited: boolean
    • initing: boolean
    • Readonly isActive: boolean
    • Readonly isConnected: boolean
    • loadClient: (() => Promise<boolean>)
        • (): Promise<boolean>
        • Returns Promise<boolean>

    • metadata: ClientMetadata
    • reconnect: (() => Promise<void>)
        • (): Promise<void>
        • Returns Promise<void>

    • removeAccounts: (() => void)
        • (): void
        • Returns void

    • setAsActiveWallet: (() => void)
        • (): void
        • Returns void

    • signTransactions: ((transactions) => Promise<Uint8Array[]>)
        • (transactions): Promise<Uint8Array[]>
        • Parameters

          • transactions: Uint8Array[]

          Returns Promise<Uint8Array[]>

    • signing: boolean
    • unloadClient: (() => Promise<void>)
        • (): Promise<void>
        • Returns Promise<void>

  • mnemonic: {
        accounts: Account[];
        client: null | MnemonicClient;
        connect: ((p?) => Promise<Account[]>);
        connecting: boolean;
        disconnect: (() => Promise<void>);
        id: W_ID;
        initParams: boolean | ClientInitParams;
        inited: boolean;
        initing: boolean;
        isActive: boolean;
        isConnected: boolean;
        loadClient: (() => Promise<boolean>);
        metadata: ClientMetadata;
        reconnect: (() => Promise<void>);
        removeAccounts: (() => void);
        setAsActiveWallet: (() => void);
        signTransactions: ((transactions) => Promise<Uint8Array[]>);
        signing: boolean;
        unloadClient: (() => Promise<void>);
    }
    • Readonly accounts: Account[]
    • client: null | MnemonicClient
    • connect: ((p?) => Promise<Account[]>)
        • (p?): Promise<Account[]>
        • Parameters

          • Optional p: any

          Returns Promise<Account[]>

    • connecting: boolean
    • disconnect: (() => Promise<void>)
        • (): Promise<void>
        • Returns Promise<void>

    • id: W_ID
    • initParams: boolean | ClientInitParams
    • inited: boolean
    • initing: boolean
    • Readonly isActive: boolean
    • Readonly isConnected: boolean
    • loadClient: (() => Promise<boolean>)
        • (): Promise<boolean>
        • Returns Promise<boolean>

    • metadata: ClientMetadata
    • reconnect: (() => Promise<void>)
        • (): Promise<void>
        • Returns Promise<void>

    • removeAccounts: (() => void)
        • (): void
        • Returns void

    • setAsActiveWallet: (() => void)
        • (): void
        • Returns void

    • signTransactions: ((transactions) => Promise<Uint8Array[]>)
        • (transactions): Promise<Uint8Array[]>
        • Parameters

          • transactions: Uint8Array[]

          Returns Promise<Uint8Array[]>

    • signing: boolean
    • unloadClient: (() => Promise<void>)
        • (): Promise<void>
        • Returns Promise<void>

  • myalgo: {
        accounts: Account[];
        client: null | MyAlgoClient;
        connect: ((p?) => Promise<Account[]>);
        connecting: boolean;
        disconnect: (() => Promise<void>);
        id: W_ID;
        initParams: boolean | ClientInitParams;
        inited: boolean;
        initing: boolean;
        isActive: boolean;
        isConnected: boolean;
        loadClient: (() => Promise<boolean>);
        metadata: ClientMetadata;
        reconnect: (() => Promise<void>);
        removeAccounts: (() => void);
        setAsActiveWallet: (() => void);
        signTransactions: ((transactions) => Promise<Uint8Array[]>);
        signing: boolean;
        unloadClient: (() => Promise<void>);
    }
    • Readonly accounts: Account[]
    • client: null | MyAlgoClient
    • connect: ((p?) => Promise<Account[]>)
        • (p?): Promise<Account[]>
        • Parameters

          • Optional p: any

          Returns Promise<Account[]>

    • connecting: boolean
    • disconnect: (() => Promise<void>)
        • (): Promise<void>
        • Returns Promise<void>

    • id: W_ID
    • initParams: boolean | ClientInitParams
    • inited: boolean
    • initing: boolean
    • Readonly isActive: boolean
    • Readonly isConnected: boolean
    • loadClient: (() => Promise<boolean>)
        • (): Promise<boolean>
        • Returns Promise<boolean>

    • metadata: ClientMetadata
    • reconnect: (() => Promise<void>)
        • (): Promise<void>
        • Returns Promise<void>

    • removeAccounts: (() => void)
        • (): void
        • Returns void

    • setAsActiveWallet: (() => void)
        • (): void
        • Returns void

    • signTransactions: ((transactions) => Promise<Uint8Array[]>)
        • (transactions): Promise<Uint8Array[]>
        • Parameters

          • transactions: Uint8Array[]

          Returns Promise<Uint8Array[]>

    • signing: boolean
    • unloadClient: (() => Promise<void>)
        • (): Promise<void>
        • Returns Promise<void>

  • pera: {
        accounts: Account[];
        client: null | PeraClient;
        connect: ((p?) => Promise<Account[]>);
        connecting: boolean;
        disconnect: (() => Promise<void>);
        id: W_ID;
        initParams: boolean | ClientInitParams;
        inited: boolean;
        initing: boolean;
        isActive: boolean;
        isConnected: boolean;
        loadClient: (() => Promise<boolean>);
        metadata: ClientMetadata;
        reconnect: (() => Promise<void>);
        removeAccounts: (() => void);
        setAsActiveWallet: (() => void);
        signTransactions: ((transactions) => Promise<Uint8Array[]>);
        signing: boolean;
        unloadClient: (() => Promise<void>);
    }
    • Readonly accounts: Account[]
    • client: null | PeraClient
    • connect: ((p?) => Promise<Account[]>)
        • (p?): Promise<Account[]>
        • Parameters

          • Optional p: any

          Returns Promise<Account[]>

    • connecting: boolean
    • disconnect: (() => Promise<void>)
        • (): Promise<void>
        • Returns Promise<void>

    • id: W_ID
    • initParams: boolean | ClientInitParams
    • inited: boolean
    • initing: boolean
    • Readonly isActive: boolean
    • Readonly isConnected: boolean
    • loadClient: (() => Promise<boolean>)
        • (): Promise<boolean>
        • Returns Promise<boolean>

    • metadata: ClientMetadata
    • reconnect: (() => Promise<void>)
        • (): Promise<void>
        • Returns Promise<void>

    • removeAccounts: (() => void)
        • (): void
        • Returns void

    • setAsActiveWallet: (() => void)
        • (): void
        • Returns void

    • signTransactions: ((transactions) => Promise<Uint8Array[]>)
        • (transactions): Promise<Uint8Array[]>
        • Parameters

          • transactions: Uint8Array[]

          Returns Promise<Uint8Array[]>

    • signing: boolean
    • unloadClient: (() => Promise<void>)
        • (): Promise<void>
        • Returns Promise<void>

arr: IObservableArray<number[]>
changedAccountHandlers: Set<any>
connectWallet: (<W, P>(wId, wInitParams?) => Promise<Account[]>)

Type declaration

    • <W, P>(wId, wInitParams?): Promise<Account[]>
    • Type Parameters

      • W extends W_ID

      • P extends undefined | string | boolean | {
            config?: InkeyConfig;
            id?: "inkey";
            sdk?: {
                frameBus: FrameBus;
                connect(payload?) => Promise<InkeyAccount[]>;
                disconnect() => Promise<InkeyResponseBase>;
                hide() => void;
                ping<R, T>(data, options?) => Promise<R>;
                show(routepath?) => void;
                signTxns(txns, connectedAccounts?) => Promise<InkeySignTxnResponse>;
                signTxnsUint8Array(txns, connectedAccounts?) => Promise<InkeySignTxnResponse>;
            };
        } | {
            config?: SdkConfig$6;
            id?: "pera";
            sdk?: PeraSdk;
        } | {
            config?: SdkConfig$4;
            id?: "myalgo";
            sdk?: default;
        } | {
            config?: SdkConfig$3;
            id?: "algosigner";
            sdk?: AlgoSignerSdk;
        } | {
            config?: SdkConfig$2;
            id?: "exodus";
            sdk?: ExodusSdk;
        } | {
            config?: SdkConfig$1;
            id?: "defly";
            sdk?: DeflySdk;
        } | {
            config?: SdkConfig;
            id?: "mnemonic";
            sdk?: default;
        }

      Parameters

      • wId: W
      • Optional wInitParams: P

      Returns Promise<Account[]>

connectedAccounts: Account[]
disconnectAllWallets: (() => Promise<void>)

Type declaration

    • (): Promise<void>
    • Returns Promise<void>

disconnectWallet: (<W>(wId) => Promise<void>)

Type declaration

    • <W>(wId): Promise<void>
    • Type Parameters

      Parameters

      • wId: W

      Returns Promise<void>

emitSyncStates: (() => void)

Type declaration

    • (): void
    • Returns void

getAccountsByWalletId: ((id) => Account[])

Type declaration

initWallet: (<W, P>(wId, wInitParams) => {
    algosigner: {
        accounts: Account[];
        client: null | AlgoSignerClient;
        connect: ((p?) => Promise<Account[]>);
        connecting: boolean;
        disconnect: (() => Promise<void>);
        id: W_ID;
        initParams: boolean | ClientInitParams;
        inited: boolean;
        initing: boolean;
        isActive: boolean;
        isConnected: boolean;
        loadClient: (() => Promise<boolean>);
        metadata: ClientMetadata;
        reconnect: (() => Promise<void>);
        removeAccounts: (() => void);
        setAsActiveWallet: (() => void);
        signTransactions: ((transactions) => Promise<Uint8Array[]>);
        signing: boolean;
        unloadClient: (() => Promise<void>);
    };
    defly: {
        accounts: Account[];
        client: null | DeflyClient;
        connect: ((p?) => Promise<Account[]>);
        connecting: boolean;
        disconnect: (() => Promise<void>);
        id: W_ID;
        initParams: boolean | ClientInitParams;
        inited: boolean;
        initing: boolean;
        isActive: boolean;
        isConnected: boolean;
        loadClient: (() => Promise<boolean>);
        metadata: ClientMetadata;
        reconnect: (() => Promise<void>);
        removeAccounts: (() => void);
        setAsActiveWallet: (() => void);
        signTransactions: ((transactions) => Promise<Uint8Array[]>);
        signing: boolean;
        unloadClient: (() => Promise<void>);
    };
    exodus: {
        accounts: Account[];
        client: null | ExodusClient;
        connect: ((p?) => Promise<Account[]>);
        connecting: boolean;
        disconnect: (() => Promise<void>);
        id: W_ID;
        initParams: boolean | ClientInitParams;
        inited: boolean;
        initing: boolean;
        isActive: boolean;
        isConnected: boolean;
        loadClient: (() => Promise<boolean>);
        metadata: ClientMetadata;
        reconnect: (() => Promise<void>);
        removeAccounts: (() => void);
        setAsActiveWallet: (() => void);
        signTransactions: ((transactions) => Promise<Uint8Array[]>);
        signing: boolean;
        unloadClient: (() => Promise<void>);
    };
    inkey: {
        accounts: Account[];
        client: null | InkeyClient;
        connect: ((p?) => Promise<Account[]>);
        connecting: boolean;
        disconnect: (() => Promise<void>);
        id: W_ID;
        initParams: boolean | ClientInitParams;
        inited: boolean;
        initing: boolean;
        isActive: boolean;
        isConnected: boolean;
        loadClient: (() => Promise<boolean>);
        metadata: ClientMetadata;
        reconnect: (() => Promise<void>);
        removeAccounts: (() => void);
        setAsActiveWallet: (() => void);
        signTransactions: ((transactions) => Promise<Uint8Array[]>);
        signing: boolean;
        unloadClient: (() => Promise<void>);
    };
    mnemonic: {
        accounts: Account[];
        client: null | MnemonicClient;
        connect: ((p?) => Promise<Account[]>);
        connecting: boolean;
        disconnect: (() => Promise<void>);
        id: W_ID;
        initParams: boolean | ClientInitParams;
        inited: boolean;
        initing: boolean;
        isActive: boolean;
        isConnected: boolean;
        loadClient: (() => Promise<boolean>);
        metadata: ClientMetadata;
        reconnect: (() => Promise<void>);
        removeAccounts: (() => void);
        setAsActiveWallet: (() => void);
        signTransactions: ((transactions) => Promise<Uint8Array[]>);
        signing: boolean;
        unloadClient: (() => Promise<void>);
    };
    myalgo: {
        accounts: Account[];
        client: null | MyAlgoClient;
        connect: ((p?) => Promise<Account[]>);
        connecting: boolean;
        disconnect: (() => Promise<void>);
        id: W_ID;
        initParams: boolean | ClientInitParams;
        inited: boolean;
        initing: boolean;
        isActive: boolean;
        isConnected: boolean;
        loadClient: (() => Promise<boolean>);
        metadata: ClientMetadata;
        reconnect: (() => Promise<void>);
        removeAccounts: (() => void);
        setAsActiveWallet: (() => void);
        signTransactions: ((transactions) => Promise<Uint8Array[]>);
        signing: boolean;
        unloadClient: (() => Promise<void>);
    };
    pera: {
        accounts: Account[];
        client: null | PeraClient;
        connect: ((p?) => Promise<Account[]>);
        connecting: boolean;
        disconnect: (() => Promise<void>);
        id: W_ID;
        initParams: boolean | ClientInitParams;
        inited: boolean;
        initing: boolean;
        isActive: boolean;
        isConnected: boolean;
        loadClient: (() => Promise<boolean>);
        metadata: ClientMetadata;
        reconnect: (() => Promise<void>);
        removeAccounts: (() => void);
        setAsActiveWallet: (() => void);
        signTransactions: ((transactions) => Promise<Uint8Array[]>);
        signing: boolean;
        unloadClient: (() => Promise<void>);
    };
}[W])

Type declaration

    • <W, P>(wId, wInitParams): {
          algosigner: {
              accounts: Account[];
              client: null | AlgoSignerClient;
              connect: ((p?) => Promise<Account[]>);
              connecting: boolean;
              disconnect: (() => Promise<void>);
              id: W_ID;
              initParams: boolean | ClientInitParams;
              inited: boolean;
              initing: boolean;
              isActive: boolean;
              isConnected: boolean;
              loadClient: (() => Promise<boolean>);
              metadata: ClientMetadata;
              reconnect: (() => Promise<void>);
              removeAccounts: (() => void);
              setAsActiveWallet: (() => void);
              signTransactions: ((transactions) => Promise<Uint8Array[]>);
              signing: boolean;
              unloadClient: (() => Promise<void>);
          };
          defly: {
              accounts: Account[];
              client: null | DeflyClient;
              connect: ((p?) => Promise<Account[]>);
              connecting: boolean;
              disconnect: (() => Promise<void>);
              id: W_ID;
              initParams: boolean | ClientInitParams;
              inited: boolean;
              initing: boolean;
              isActive: boolean;
              isConnected: boolean;
              loadClient: (() => Promise<boolean>);
              metadata: ClientMetadata;
              reconnect: (() => Promise<void>);
              removeAccounts: (() => void);
              setAsActiveWallet: (() => void);
              signTransactions: ((transactions) => Promise<Uint8Array[]>);
              signing: boolean;
              unloadClient: (() => Promise<void>);
          };
          exodus: {
              accounts: Account[];
              client: null | ExodusClient;
              connect: ((p?) => Promise<Account[]>);
              connecting: boolean;
              disconnect: (() => Promise<void>);
              id: W_ID;
              initParams: boolean | ClientInitParams;
              inited: boolean;
              initing: boolean;
              isActive: boolean;
              isConnected: boolean;
              loadClient: (() => Promise<boolean>);
              metadata: ClientMetadata;
              reconnect: (() => Promise<void>);
              removeAccounts: (() => void);
              setAsActiveWallet: (() => void);
              signTransactions: ((transactions) => Promise<Uint8Array[]>);
              signing: boolean;
              unloadClient: (() => Promise<void>);
          };
          inkey: {
              accounts: Account[];
              client: null | InkeyClient;
              connect: ((p?) => Promise<Account[]>);
              connecting: boolean;
              disconnect: (() => Promise<void>);
              id: W_ID;
              initParams: boolean | ClientInitParams;
              inited: boolean;
              initing: boolean;
              isActive: boolean;
              isConnected: boolean;
              loadClient: (() => Promise<boolean>);
              metadata: ClientMetadata;
              reconnect: (() => Promise<void>);
              removeAccounts: (() => void);
              setAsActiveWallet: (() => void);
              signTransactions: ((transactions) => Promise<Uint8Array[]>);
              signing: boolean;
              unloadClient: (() => Promise<void>);
          };
          mnemonic: {
              accounts: Account[];
              client: null | MnemonicClient;
              connect: ((p?) => Promise<Account[]>);
              connecting: boolean;
              disconnect: (() => Promise<void>);
              id: W_ID;
              initParams: boolean | ClientInitParams;
              inited: boolean;
              initing: boolean;
              isActive: boolean;
              isConnected: boolean;
              loadClient: (() => Promise<boolean>);
              metadata: ClientMetadata;
              reconnect: (() => Promise<void>);
              removeAccounts: (() => void);
              setAsActiveWallet: (() => void);
              signTransactions: ((transactions) => Promise<Uint8Array[]>);
              signing: boolean;
              unloadClient: (() => Promise<void>);
          };
          myalgo: {
              accounts: Account[];
              client: null | MyAlgoClient;
              connect: ((p?) => Promise<Account[]>);
              connecting: boolean;
              disconnect: (() => Promise<void>);
              id: W_ID;
              initParams: boolean | ClientInitParams;
              inited: boolean;
              initing: boolean;
              isActive: boolean;
              isConnected: boolean;
              loadClient: (() => Promise<boolean>);
              metadata: ClientMetadata;
              reconnect: (() => Promise<void>);
              removeAccounts: (() => void);
              setAsActiveWallet: (() => void);
              signTransactions: ((transactions) => Promise<Uint8Array[]>);
              signing: boolean;
              unloadClient: (() => Promise<void>);
          };
          pera: {
              accounts: Account[];
              client: null | PeraClient;
              connect: ((p?) => Promise<Account[]>);
              connecting: boolean;
              disconnect: (() => Promise<void>);
              id: W_ID;
              initParams: boolean | ClientInitParams;
              inited: boolean;
              initing: boolean;
              isActive: boolean;
              isConnected: boolean;
              loadClient: (() => Promise<boolean>);
              metadata: ClientMetadata;
              reconnect: (() => Promise<void>);
              removeAccounts: (() => void);
              setAsActiveWallet: (() => void);
              signTransactions: ((transactions) => Promise<Uint8Array[]>);
              signing: boolean;
              unloadClient: (() => Promise<void>);
          };
      }[W]
    • Type Parameters

      • W extends W_ID

      • P extends undefined | string | boolean | {
            config?: InkeyConfig;
            id?: "inkey";
            sdk?: {
                frameBus: FrameBus;
                connect(payload?) => Promise<InkeyAccount[]>;
                disconnect() => Promise<InkeyResponseBase>;
                hide() => void;
                ping<R, T>(data, options?) => Promise<R>;
                show(routepath?) => void;
                signTxns(txns, connectedAccounts?) => Promise<InkeySignTxnResponse>;
                signTxnsUint8Array(txns, connectedAccounts?) => Promise<InkeySignTxnResponse>;
            };
        } | {
            config?: SdkConfig$6;
            id?: "pera";
            sdk?: PeraSdk;
        } | {
            config?: SdkConfig$4;
            id?: "myalgo";
            sdk?: default;
        } | {
            config?: SdkConfig$3;
            id?: "algosigner";
            sdk?: AlgoSignerSdk;
        } | {
            config?: SdkConfig$2;
            id?: "exodus";
            sdk?: ExodusSdk;
        } | {
            config?: SdkConfig$1;
            id?: "defly";
            sdk?: DeflySdk;
        } | {
            config?: SdkConfig;
            id?: "mnemonic";
            sdk?: default;
        }

      Parameters

      • wId: W
      • wInitParams: P

      Returns {
          algosigner: {
              accounts: Account[];
              client: null | AlgoSignerClient;
              connect: ((p?) => Promise<Account[]>);
              connecting: boolean;
              disconnect: (() => Promise<void>);
              id: W_ID;
              initParams: boolean | ClientInitParams;
              inited: boolean;
              initing: boolean;
              isActive: boolean;
              isConnected: boolean;
              loadClient: (() => Promise<boolean>);
              metadata: ClientMetadata;
              reconnect: (() => Promise<void>);
              removeAccounts: (() => void);
              setAsActiveWallet: (() => void);
              signTransactions: ((transactions) => Promise<Uint8Array[]>);
              signing: boolean;
              unloadClient: (() => Promise<void>);
          };
          defly: {
              accounts: Account[];
              client: null | DeflyClient;
              connect: ((p?) => Promise<Account[]>);
              connecting: boolean;
              disconnect: (() => Promise<void>);
              id: W_ID;
              initParams: boolean | ClientInitParams;
              inited: boolean;
              initing: boolean;
              isActive: boolean;
              isConnected: boolean;
              loadClient: (() => Promise<boolean>);
              metadata: ClientMetadata;
              reconnect: (() => Promise<void>);
              removeAccounts: (() => void);
              setAsActiveWallet: (() => void);
              signTransactions: ((transactions) => Promise<Uint8Array[]>);
              signing: boolean;
              unloadClient: (() => Promise<void>);
          };
          exodus: {
              accounts: Account[];
              client: null | ExodusClient;
              connect: ((p?) => Promise<Account[]>);
              connecting: boolean;
              disconnect: (() => Promise<void>);
              id: W_ID;
              initParams: boolean | ClientInitParams;
              inited: boolean;
              initing: boolean;
              isActive: boolean;
              isConnected: boolean;
              loadClient: (() => Promise<boolean>);
              metadata: ClientMetadata;
              reconnect: (() => Promise<void>);
              removeAccounts: (() => void);
              setAsActiveWallet: (() => void);
              signTransactions: ((transactions) => Promise<Uint8Array[]>);
              signing: boolean;
              unloadClient: (() => Promise<void>);
          };
          inkey: {
              accounts: Account[];
              client: null | InkeyClient;
              connect: ((p?) => Promise<Account[]>);
              connecting: boolean;
              disconnect: (() => Promise<void>);
              id: W_ID;
              initParams: boolean | ClientInitParams;
              inited: boolean;
              initing: boolean;
              isActive: boolean;
              isConnected: boolean;
              loadClient: (() => Promise<boolean>);
              metadata: ClientMetadata;
              reconnect: (() => Promise<void>);
              removeAccounts: (() => void);
              setAsActiveWallet: (() => void);
              signTransactions: ((transactions) => Promise<Uint8Array[]>);
              signing: boolean;
              unloadClient: (() => Promise<void>);
          };
          mnemonic: {
              accounts: Account[];
              client: null | MnemonicClient;
              connect: ((p?) => Promise<Account[]>);
              connecting: boolean;
              disconnect: (() => Promise<void>);
              id: W_ID;
              initParams: boolean | ClientInitParams;
              inited: boolean;
              initing: boolean;
              isActive: boolean;
              isConnected: boolean;
              loadClient: (() => Promise<boolean>);
              metadata: ClientMetadata;
              reconnect: (() => Promise<void>);
              removeAccounts: (() => void);
              setAsActiveWallet: (() => void);
              signTransactions: ((transactions) => Promise<Uint8Array[]>);
              signing: boolean;
              unloadClient: (() => Promise<void>);
          };
          myalgo: {
              accounts: Account[];
              client: null | MyAlgoClient;
              connect: ((p?) => Promise<Account[]>);
              connecting: boolean;
              disconnect: (() => Promise<void>);
              id: W_ID;
              initParams: boolean | ClientInitParams;
              inited: boolean;
              initing: boolean;
              isActive: boolean;
              isConnected: boolean;
              loadClient: (() => Promise<boolean>);
              metadata: ClientMetadata;
              reconnect: (() => Promise<void>);
              removeAccounts: (() => void);
              setAsActiveWallet: (() => void);
              signTransactions: ((transactions) => Promise<Uint8Array[]>);
              signing: boolean;
              unloadClient: (() => Promise<void>);
          };
          pera: {
              accounts: Account[];
              client: null | PeraClient;
              connect: ((p?) => Promise<Account[]>);
              connecting: boolean;
              disconnect: (() => Promise<void>);
              id: W_ID;
              initParams: boolean | ClientInitParams;
              inited: boolean;
              initing: boolean;
              isActive: boolean;
              isConnected: boolean;
              loadClient: (() => Promise<boolean>);
              metadata: ClientMetadata;
              reconnect: (() => Promise<void>);
              removeAccounts: (() => void);
              setAsActiveWallet: (() => void);
              signTransactions: ((transactions) => Promise<Uint8Array[]>);
              signing: boolean;
              unloadClient: (() => Promise<void>);
          };
      }[W]

initWallets: ((walletInits) => {
    algosigner: {
        accounts: Account[];
        client: null | AlgoSignerClient;
        connect: ((p?) => Promise<Account[]>);
        connecting: boolean;
        disconnect: (() => Promise<void>);
        id: W_ID;
        initParams: boolean | ClientInitParams;
        inited: boolean;
        initing: boolean;
        isActive: boolean;
        isConnected: boolean;
        loadClient: (() => Promise<boolean>);
        metadata: ClientMetadata;
        reconnect: (() => Promise<void>);
        removeAccounts: (() => void);
        setAsActiveWallet: (() => void);
        signTransactions: ((transactions) => Promise<Uint8Array[]>);
        signing: boolean;
        unloadClient: (() => Promise<void>);
    };
    defly: {
        accounts: Account[];
        client: null | DeflyClient;
        connect: ((p?) => Promise<Account[]>);
        connecting: boolean;
        disconnect: (() => Promise<void>);
        id: W_ID;
        initParams: boolean | ClientInitParams;
        inited: boolean;
        initing: boolean;
        isActive: boolean;
        isConnected: boolean;
        loadClient: (() => Promise<boolean>);
        metadata: ClientMetadata;
        reconnect: (() => Promise<void>);
        removeAccounts: (() => void);
        setAsActiveWallet: (() => void);
        signTransactions: ((transactions) => Promise<Uint8Array[]>);
        signing: boolean;
        unloadClient: (() => Promise<void>);
    };
    exodus: {
        accounts: Account[];
        client: null | ExodusClient;
        connect: ((p?) => Promise<Account[]>);
        connecting: boolean;
        disconnect: (() => Promise<void>);
        id: W_ID;
        initParams: boolean | ClientInitParams;
        inited: boolean;
        initing: boolean;
        isActive: boolean;
        isConnected: boolean;
        loadClient: (() => Promise<boolean>);
        metadata: ClientMetadata;
        reconnect: (() => Promise<void>);
        removeAccounts: (() => void);
        setAsActiveWallet: (() => void);
        signTransactions: ((transactions) => Promise<Uint8Array[]>);
        signing: boolean;
        unloadClient: (() => Promise<void>);
    };
    inkey: {
        accounts: Account[];
        client: null | InkeyClient;
        connect: ((p?) => Promise<Account[]>);
        connecting: boolean;
        disconnect: (() => Promise<void>);
        id: W_ID;
        initParams: boolean | ClientInitParams;
        inited: boolean;
        initing: boolean;
        isActive: boolean;
        isConnected: boolean;
        loadClient: (() => Promise<boolean>);
        metadata: ClientMetadata;
        reconnect: (() => Promise<void>);
        removeAccounts: (() => void);
        setAsActiveWallet: (() => void);
        signTransactions: ((transactions) => Promise<Uint8Array[]>);
        signing: boolean;
        unloadClient: (() => Promise<void>);
    };
    mnemonic: {
        accounts: Account[];
        client: null | MnemonicClient;
        connect: ((p?) => Promise<Account[]>);
        connecting: boolean;
        disconnect: (() => Promise<void>);
        id: W_ID;
        initParams: boolean | ClientInitParams;
        inited: boolean;
        initing: boolean;
        isActive: boolean;
        isConnected: boolean;
        loadClient: (() => Promise<boolean>);
        metadata: ClientMetadata;
        reconnect: (() => Promise<void>);
        removeAccounts: (() => void);
        setAsActiveWallet: (() => void);
        signTransactions: ((transactions) => Promise<Uint8Array[]>);
        signing: boolean;
        unloadClient: (() => Promise<void>);
    };
    myalgo: {
        accounts: Account[];
        client: null | MyAlgoClient;
        connect: ((p?) => Promise<Account[]>);
        connecting: boolean;
        disconnect: (() => Promise<void>);
        id: W_ID;
        initParams: boolean | ClientInitParams;
        inited: boolean;
        initing: boolean;
        isActive: boolean;
        isConnected: boolean;
        loadClient: (() => Promise<boolean>);
        metadata: ClientMetadata;
        reconnect: (() => Promise<void>);
        removeAccounts: (() => void);
        setAsActiveWallet: (() => void);
        signTransactions: ((transactions) => Promise<Uint8Array[]>);
        signing: boolean;
        unloadClient: (() => Promise<void>);
    };
    pera: {
        accounts: Account[];
        client: null | PeraClient;
        connect: ((p?) => Promise<Account[]>);
        connecting: boolean;
        disconnect: (() => Promise<void>);
        id: W_ID;
        initParams: boolean | ClientInitParams;
        inited: boolean;
        initing: boolean;
        isActive: boolean;
        isConnected: boolean;
        loadClient: (() => Promise<boolean>);
        metadata: ClientMetadata;
        reconnect: (() => Promise<void>);
        removeAccounts: (() => void);
        setAsActiveWallet: (() => void);
        signTransactions: ((transactions) => Promise<Uint8Array[]>);
        signing: boolean;
        unloadClient: (() => Promise<void>);
    };
})

Type declaration

    • (walletInits): {
          algosigner: {
              accounts: Account[];
              client: null | AlgoSignerClient;
              connect: ((p?) => Promise<Account[]>);
              connecting: boolean;
              disconnect: (() => Promise<void>);
              id: W_ID;
              initParams: boolean | ClientInitParams;
              inited: boolean;
              initing: boolean;
              isActive: boolean;
              isConnected: boolean;
              loadClient: (() => Promise<boolean>);
              metadata: ClientMetadata;
              reconnect: (() => Promise<void>);
              removeAccounts: (() => void);
              setAsActiveWallet: (() => void);
              signTransactions: ((transactions) => Promise<Uint8Array[]>);
              signing: boolean;
              unloadClient: (() => Promise<void>);
          };
          defly: {
              accounts: Account[];
              client: null | DeflyClient;
              connect: ((p?) => Promise<Account[]>);
              connecting: boolean;
              disconnect: (() => Promise<void>);
              id: W_ID;
              initParams: boolean | ClientInitParams;
              inited: boolean;
              initing: boolean;
              isActive: boolean;
              isConnected: boolean;
              loadClient: (() => Promise<boolean>);
              metadata: ClientMetadata;
              reconnect: (() => Promise<void>);
              removeAccounts: (() => void);
              setAsActiveWallet: (() => void);
              signTransactions: ((transactions) => Promise<Uint8Array[]>);
              signing: boolean;
              unloadClient: (() => Promise<void>);
          };
          exodus: {
              accounts: Account[];
              client: null | ExodusClient;
              connect: ((p?) => Promise<Account[]>);
              connecting: boolean;
              disconnect: (() => Promise<void>);
              id: W_ID;
              initParams: boolean | ClientInitParams;
              inited: boolean;
              initing: boolean;
              isActive: boolean;
              isConnected: boolean;
              loadClient: (() => Promise<boolean>);
              metadata: ClientMetadata;
              reconnect: (() => Promise<void>);
              removeAccounts: (() => void);
              setAsActiveWallet: (() => void);
              signTransactions: ((transactions) => Promise<Uint8Array[]>);
              signing: boolean;
              unloadClient: (() => Promise<void>);
          };
          inkey: {
              accounts: Account[];
              client: null | InkeyClient;
              connect: ((p?) => Promise<Account[]>);
              connecting: boolean;
              disconnect: (() => Promise<void>);
              id: W_ID;
              initParams: boolean | ClientInitParams;
              inited: boolean;
              initing: boolean;
              isActive: boolean;
              isConnected: boolean;
              loadClient: (() => Promise<boolean>);
              metadata: ClientMetadata;
              reconnect: (() => Promise<void>);
              removeAccounts: (() => void);
              setAsActiveWallet: (() => void);
              signTransactions: ((transactions) => Promise<Uint8Array[]>);
              signing: boolean;
              unloadClient: (() => Promise<void>);
          };
          mnemonic: {
              accounts: Account[];
              client: null | MnemonicClient;
              connect: ((p?) => Promise<Account[]>);
              connecting: boolean;
              disconnect: (() => Promise<void>);
              id: W_ID;
              initParams: boolean | ClientInitParams;
              inited: boolean;
              initing: boolean;
              isActive: boolean;
              isConnected: boolean;
              loadClient: (() => Promise<boolean>);
              metadata: ClientMetadata;
              reconnect: (() => Promise<void>);
              removeAccounts: (() => void);
              setAsActiveWallet: (() => void);
              signTransactions: ((transactions) => Promise<Uint8Array[]>);
              signing: boolean;
              unloadClient: (() => Promise<void>);
          };
          myalgo: {
              accounts: Account[];
              client: null | MyAlgoClient;
              connect: ((p?) => Promise<Account[]>);
              connecting: boolean;
              disconnect: (() => Promise<void>);
              id: W_ID;
              initParams: boolean | ClientInitParams;
              inited: boolean;
              initing: boolean;
              isActive: boolean;
              isConnected: boolean;
              loadClient: (() => Promise<boolean>);
              metadata: ClientMetadata;
              reconnect: (() => Promise<void>);
              removeAccounts: (() => void);
              setAsActiveWallet: (() => void);
              signTransactions: ((transactions) => Promise<Uint8Array[]>);
              signing: boolean;
              unloadClient: (() => Promise<void>);
          };
          pera: {
              accounts: Account[];
              client: null | PeraClient;
              connect: ((p?) => Promise<Account[]>);
              connecting: boolean;
              disconnect: (() => Promise<void>);
              id: W_ID;
              initParams: boolean | ClientInitParams;
              inited: boolean;
              initing: boolean;
              isActive: boolean;
              isConnected: boolean;
              loadClient: (() => Promise<boolean>);
              metadata: ClientMetadata;
              reconnect: (() => Promise<void>);
              removeAccounts: (() => void);
              setAsActiveWallet: (() => void);
              signTransactions: ((transactions) => Promise<Uint8Array[]>);
              signing: boolean;
              unloadClient: (() => Promise<void>);
          };
      }
    • Parameters

      Returns {
          algosigner: {
              accounts: Account[];
              client: null | AlgoSignerClient;
              connect: ((p?) => Promise<Account[]>);
              connecting: boolean;
              disconnect: (() => Promise<void>);
              id: W_ID;
              initParams: boolean | ClientInitParams;
              inited: boolean;
              initing: boolean;
              isActive: boolean;
              isConnected: boolean;
              loadClient: (() => Promise<boolean>);
              metadata: ClientMetadata;
              reconnect: (() => Promise<void>);
              removeAccounts: (() => void);
              setAsActiveWallet: (() => void);
              signTransactions: ((transactions) => Promise<Uint8Array[]>);
              signing: boolean;
              unloadClient: (() => Promise<void>);
          };
          defly: {
              accounts: Account[];
              client: null | DeflyClient;
              connect: ((p?) => Promise<Account[]>);
              connecting: boolean;
              disconnect: (() => Promise<void>);
              id: W_ID;
              initParams: boolean | ClientInitParams;
              inited: boolean;
              initing: boolean;
              isActive: boolean;
              isConnected: boolean;
              loadClient: (() => Promise<boolean>);
              metadata: ClientMetadata;
              reconnect: (() => Promise<void>);
              removeAccounts: (() => void);
              setAsActiveWallet: (() => void);
              signTransactions: ((transactions) => Promise<Uint8Array[]>);
              signing: boolean;
              unloadClient: (() => Promise<void>);
          };
          exodus: {
              accounts: Account[];
              client: null | ExodusClient;
              connect: ((p?) => Promise<Account[]>);
              connecting: boolean;
              disconnect: (() => Promise<void>);
              id: W_ID;
              initParams: boolean | ClientInitParams;
              inited: boolean;
              initing: boolean;
              isActive: boolean;
              isConnected: boolean;
              loadClient: (() => Promise<boolean>);
              metadata: ClientMetadata;
              reconnect: (() => Promise<void>);
              removeAccounts: (() => void);
              setAsActiveWallet: (() => void);
              signTransactions: ((transactions) => Promise<Uint8Array[]>);
              signing: boolean;
              unloadClient: (() => Promise<void>);
          };
          inkey: {
              accounts: Account[];
              client: null | InkeyClient;
              connect: ((p?) => Promise<Account[]>);
              connecting: boolean;
              disconnect: (() => Promise<void>);
              id: W_ID;
              initParams: boolean | ClientInitParams;
              inited: boolean;
              initing: boolean;
              isActive: boolean;
              isConnected: boolean;
              loadClient: (() => Promise<boolean>);
              metadata: ClientMetadata;
              reconnect: (() => Promise<void>);
              removeAccounts: (() => void);
              setAsActiveWallet: (() => void);
              signTransactions: ((transactions) => Promise<Uint8Array[]>);
              signing: boolean;
              unloadClient: (() => Promise<void>);
          };
          mnemonic: {
              accounts: Account[];
              client: null | MnemonicClient;
              connect: ((p?) => Promise<Account[]>);
              connecting: boolean;
              disconnect: (() => Promise<void>);
              id: W_ID;
              initParams: boolean | ClientInitParams;
              inited: boolean;
              initing: boolean;
              isActive: boolean;
              isConnected: boolean;
              loadClient: (() => Promise<boolean>);
              metadata: ClientMetadata;
              reconnect: (() => Promise<void>);
              removeAccounts: (() => void);
              setAsActiveWallet: (() => void);
              signTransactions: ((transactions) => Promise<Uint8Array[]>);
              signing: boolean;
              unloadClient: (() => Promise<void>);
          };
          myalgo: {
              accounts: Account[];
              client: null | MyAlgoClient;
              connect: ((p?) => Promise<Account[]>);
              connecting: boolean;
              disconnect: (() => Promise<void>);
              id: W_ID;
              initParams: boolean | ClientInitParams;
              inited: boolean;
              initing: boolean;
              isActive: boolean;
              isConnected: boolean;
              loadClient: (() => Promise<boolean>);
              metadata: ClientMetadata;
              reconnect: (() => Promise<void>);
              removeAccounts: (() => void);
              setAsActiveWallet: (() => void);
              signTransactions: ((transactions) => Promise<Uint8Array[]>);
              signing: boolean;
              unloadClient: (() => Promise<void>);
          };
          pera: {
              accounts: Account[];
              client: null | PeraClient;
              connect: ((p?) => Promise<Account[]>);
              connecting: boolean;
              disconnect: (() => Promise<void>);
              id: W_ID;
              initParams: boolean | ClientInitParams;
              inited: boolean;
              initing: boolean;
              isActive: boolean;
              isConnected: boolean;
              loadClient: (() => Promise<boolean>);
              metadata: ClientMetadata;
              reconnect: (() => Promise<void>);
              removeAccounts: (() => void);
              setAsActiveWallet: (() => void);
              signTransactions: ((transactions) => Promise<Uint8Array[]>);
              signing: boolean;
              unloadClient: (() => Promise<void>);
          };
      }

      • algosigner: {
            accounts: Account[];
            client: null | AlgoSignerClient;
            connect: ((p?) => Promise<Account[]>);
            connecting: boolean;
            disconnect: (() => Promise<void>);
            id: W_ID;
            initParams: boolean | ClientInitParams;
            inited: boolean;
            initing: boolean;
            isActive: boolean;
            isConnected: boolean;
            loadClient: (() => Promise<boolean>);
            metadata: ClientMetadata;
            reconnect: (() => Promise<void>);
            removeAccounts: (() => void);
            setAsActiveWallet: (() => void);
            signTransactions: ((transactions) => Promise<Uint8Array[]>);
            signing: boolean;
            unloadClient: (() => Promise<void>);
        }
        • Readonly accounts: Account[]
        • client: null | AlgoSignerClient
        • connect: ((p?) => Promise<Account[]>)
            • (p?): Promise<Account[]>
            • Parameters

              • Optional p: any

              Returns Promise<Account[]>

        • connecting: boolean
        • disconnect: (() => Promise<void>)
            • (): Promise<void>
            • Returns Promise<void>

        • id: W_ID
        • initParams: boolean | ClientInitParams
        • inited: boolean
        • initing: boolean
        • Readonly isActive: boolean
        • Readonly isConnected: boolean
        • loadClient: (() => Promise<boolean>)
            • (): Promise<boolean>
            • Returns Promise<boolean>

        • metadata: ClientMetadata
        • reconnect: (() => Promise<void>)
            • (): Promise<void>
            • Returns Promise<void>

        • removeAccounts: (() => void)
            • (): void
            • Returns void

        • setAsActiveWallet: (() => void)
            • (): void
            • Returns void

        • signTransactions: ((transactions) => Promise<Uint8Array[]>)
            • (transactions): Promise<Uint8Array[]>
            • Parameters

              • transactions: Uint8Array[]

              Returns Promise<Uint8Array[]>

        • signing: boolean
        • unloadClient: (() => Promise<void>)
            • (): Promise<void>
            • Returns Promise<void>

      • defly: {
            accounts: Account[];
            client: null | DeflyClient;
            connect: ((p?) => Promise<Account[]>);
            connecting: boolean;
            disconnect: (() => Promise<void>);
            id: W_ID;
            initParams: boolean | ClientInitParams;
            inited: boolean;
            initing: boolean;
            isActive: boolean;
            isConnected: boolean;
            loadClient: (() => Promise<boolean>);
            metadata: ClientMetadata;
            reconnect: (() => Promise<void>);
            removeAccounts: (() => void);
            setAsActiveWallet: (() => void);
            signTransactions: ((transactions) => Promise<Uint8Array[]>);
            signing: boolean;
            unloadClient: (() => Promise<void>);
        }
        • Readonly accounts: Account[]
        • client: null | DeflyClient
        • connect: ((p?) => Promise<Account[]>)
            • (p?): Promise<Account[]>
            • Parameters

              • Optional p: any

              Returns Promise<Account[]>

        • connecting: boolean
        • disconnect: (() => Promise<void>)
            • (): Promise<void>
            • Returns Promise<void>

        • id: W_ID
        • initParams: boolean | ClientInitParams
        • inited: boolean
        • initing: boolean
        • Readonly isActive: boolean
        • Readonly isConnected: boolean
        • loadClient: (() => Promise<boolean>)
            • (): Promise<boolean>
            • Returns Promise<boolean>

        • metadata: ClientMetadata
        • reconnect: (() => Promise<void>)
            • (): Promise<void>
            • Returns Promise<void>

        • removeAccounts: (() => void)
            • (): void
            • Returns void

        • setAsActiveWallet: (() => void)
            • (): void
            • Returns void

        • signTransactions: ((transactions) => Promise<Uint8Array[]>)
            • (transactions): Promise<Uint8Array[]>
            • Parameters

              • transactions: Uint8Array[]

              Returns Promise<Uint8Array[]>

        • signing: boolean
        • unloadClient: (() => Promise<void>)
            • (): Promise<void>
            • Returns Promise<void>

      • exodus: {
            accounts: Account[];
            client: null | ExodusClient;
            connect: ((p?) => Promise<Account[]>);
            connecting: boolean;
            disconnect: (() => Promise<void>);
            id: W_ID;
            initParams: boolean | ClientInitParams;
            inited: boolean;
            initing: boolean;
            isActive: boolean;
            isConnected: boolean;
            loadClient: (() => Promise<boolean>);
            metadata: ClientMetadata;
            reconnect: (() => Promise<void>);
            removeAccounts: (() => void);
            setAsActiveWallet: (() => void);
            signTransactions: ((transactions) => Promise<Uint8Array[]>);
            signing: boolean;
            unloadClient: (() => Promise<void>);
        }
        • Readonly accounts: Account[]
        • client: null | ExodusClient
        • connect: ((p?) => Promise<Account[]>)
            • (p?): Promise<Account[]>
            • Parameters

              • Optional p: any

              Returns Promise<Account[]>

        • connecting: boolean
        • disconnect: (() => Promise<void>)
            • (): Promise<void>
            • Returns Promise<void>

        • id: W_ID
        • initParams: boolean | ClientInitParams
        • inited: boolean
        • initing: boolean
        • Readonly isActive: boolean
        • Readonly isConnected: boolean
        • loadClient: (() => Promise<boolean>)
            • (): Promise<boolean>
            • Returns Promise<boolean>

        • metadata: ClientMetadata
        • reconnect: (() => Promise<void>)
            • (): Promise<void>
            • Returns Promise<void>

        • removeAccounts: (() => void)
            • (): void
            • Returns void

        • setAsActiveWallet: (() => void)
            • (): void
            • Returns void

        • signTransactions: ((transactions) => Promise<Uint8Array[]>)
            • (transactions): Promise<Uint8Array[]>
            • Parameters

              • transactions: Uint8Array[]

              Returns Promise<Uint8Array[]>

        • signing: boolean
        • unloadClient: (() => Promise<void>)
            • (): Promise<void>
            • Returns Promise<void>

      • inkey: {
            accounts: Account[];
            client: null | InkeyClient;
            connect: ((p?) => Promise<Account[]>);
            connecting: boolean;
            disconnect: (() => Promise<void>);
            id: W_ID;
            initParams: boolean | ClientInitParams;
            inited: boolean;
            initing: boolean;
            isActive: boolean;
            isConnected: boolean;
            loadClient: (() => Promise<boolean>);
            metadata: ClientMetadata;
            reconnect: (() => Promise<void>);
            removeAccounts: (() => void);
            setAsActiveWallet: (() => void);
            signTransactions: ((transactions) => Promise<Uint8Array[]>);
            signing: boolean;
            unloadClient: (() => Promise<void>);
        }
        • Readonly accounts: Account[]
        • client: null | InkeyClient
        • connect: ((p?) => Promise<Account[]>)
            • (p?): Promise<Account[]>
            • Parameters

              • Optional p: any

              Returns Promise<Account[]>

        • connecting: boolean
        • disconnect: (() => Promise<void>)
            • (): Promise<void>
            • Returns Promise<void>

        • id: W_ID
        • initParams: boolean | ClientInitParams
        • inited: boolean
        • initing: boolean
        • Readonly isActive: boolean
        • Readonly isConnected: boolean
        • loadClient: (() => Promise<boolean>)
            • (): Promise<boolean>
            • Returns Promise<boolean>

        • metadata: ClientMetadata
        • reconnect: (() => Promise<void>)
            • (): Promise<void>
            • Returns Promise<void>

        • removeAccounts: (() => void)
            • (): void
            • Returns void

        • setAsActiveWallet: (() => void)
            • (): void
            • Returns void

        • signTransactions: ((transactions) => Promise<Uint8Array[]>)
            • (transactions): Promise<Uint8Array[]>
            • Parameters

              • transactions: Uint8Array[]

              Returns Promise<Uint8Array[]>

        • signing: boolean
        • unloadClient: (() => Promise<void>)
            • (): Promise<void>
            • Returns Promise<void>

      • mnemonic: {
            accounts: Account[];
            client: null | MnemonicClient;
            connect: ((p?) => Promise<Account[]>);
            connecting: boolean;
            disconnect: (() => Promise<void>);
            id: W_ID;
            initParams: boolean | ClientInitParams;
            inited: boolean;
            initing: boolean;
            isActive: boolean;
            isConnected: boolean;
            loadClient: (() => Promise<boolean>);
            metadata: ClientMetadata;
            reconnect: (() => Promise<void>);
            removeAccounts: (() => void);
            setAsActiveWallet: (() => void);
            signTransactions: ((transactions) => Promise<Uint8Array[]>);
            signing: boolean;
            unloadClient: (() => Promise<void>);
        }
        • Readonly accounts: Account[]
        • client: null | MnemonicClient
        • connect: ((p?) => Promise<Account[]>)
            • (p?): Promise<Account[]>
            • Parameters

              • Optional p: any

              Returns Promise<Account[]>

        • connecting: boolean
        • disconnect: (() => Promise<void>)
            • (): Promise<void>
            • Returns Promise<void>

        • id: W_ID
        • initParams: boolean | ClientInitParams
        • inited: boolean
        • initing: boolean
        • Readonly isActive: boolean
        • Readonly isConnected: boolean
        • loadClient: (() => Promise<boolean>)
            • (): Promise<boolean>
            • Returns Promise<boolean>

        • metadata: ClientMetadata
        • reconnect: (() => Promise<void>)
            • (): Promise<void>
            • Returns Promise<void>

        • removeAccounts: (() => void)
            • (): void
            • Returns void

        • setAsActiveWallet: (() => void)
            • (): void
            • Returns void

        • signTransactions: ((transactions) => Promise<Uint8Array[]>)
            • (transactions): Promise<Uint8Array[]>
            • Parameters

              • transactions: Uint8Array[]

              Returns Promise<Uint8Array[]>

        • signing: boolean
        • unloadClient: (() => Promise<void>)
            • (): Promise<void>
            • Returns Promise<void>

      • myalgo: {
            accounts: Account[];
            client: null | MyAlgoClient;
            connect: ((p?) => Promise<Account[]>);
            connecting: boolean;
            disconnect: (() => Promise<void>);
            id: W_ID;
            initParams: boolean | ClientInitParams;
            inited: boolean;
            initing: boolean;
            isActive: boolean;
            isConnected: boolean;
            loadClient: (() => Promise<boolean>);
            metadata: ClientMetadata;
            reconnect: (() => Promise<void>);
            removeAccounts: (() => void);
            setAsActiveWallet: (() => void);
            signTransactions: ((transactions) => Promise<Uint8Array[]>);
            signing: boolean;
            unloadClient: (() => Promise<void>);
        }
        • Readonly accounts: Account[]
        • client: null | MyAlgoClient
        • connect: ((p?) => Promise<Account[]>)
            • (p?): Promise<Account[]>
            • Parameters

              • Optional p: any

              Returns Promise<Account[]>

        • connecting: boolean
        • disconnect: (() => Promise<void>)
            • (): Promise<void>
            • Returns Promise<void>

        • id: W_ID
        • initParams: boolean | ClientInitParams
        • inited: boolean
        • initing: boolean
        • Readonly isActive: boolean
        • Readonly isConnected: boolean
        • loadClient: (() => Promise<boolean>)
            • (): Promise<boolean>
            • Returns Promise<boolean>

        • metadata: ClientMetadata
        • reconnect: (() => Promise<void>)
            • (): Promise<void>
            • Returns Promise<void>

        • removeAccounts: (() => void)
            • (): void
            • Returns void

        • setAsActiveWallet: (() => void)
            • (): void
            • Returns void

        • signTransactions: ((transactions) => Promise<Uint8Array[]>)
            • (transactions): Promise<Uint8Array[]>
            • Parameters

              • transactions: Uint8Array[]

              Returns Promise<Uint8Array[]>

        • signing: boolean
        • unloadClient: (() => Promise<void>)
            • (): Promise<void>
            • Returns Promise<void>

      • pera: {
            accounts: Account[];
            client: null | PeraClient;
            connect: ((p?) => Promise<Account[]>);
            connecting: boolean;
            disconnect: (() => Promise<void>);
            id: W_ID;
            initParams: boolean | ClientInitParams;
            inited: boolean;
            initing: boolean;
            isActive: boolean;
            isConnected: boolean;
            loadClient: (() => Promise<boolean>);
            metadata: ClientMetadata;
            reconnect: (() => Promise<void>);
            removeAccounts: (() => void);
            setAsActiveWallet: (() => void);
            signTransactions: ((transactions) => Promise<Uint8Array[]>);
            signing: boolean;
            unloadClient: (() => Promise<void>);
        }
        • Readonly accounts: Account[]
        • client: null | PeraClient
        • connect: ((p?) => Promise<Account[]>)
            • (p?): Promise<Account[]>
            • Parameters

              • Optional p: any

              Returns Promise<Account[]>

        • connecting: boolean
        • disconnect: (() => Promise<void>)
            • (): Promise<void>
            • Returns Promise<void>

        • id: W_ID
        • initParams: boolean | ClientInitParams
        • inited: boolean
        • initing: boolean
        • Readonly isActive: boolean
        • Readonly isConnected: boolean
        • loadClient: (() => Promise<boolean>)
            • (): Promise<boolean>
            • Returns Promise<boolean>

        • metadata: ClientMetadata
        • reconnect: (() => Promise<void>)
            • (): Promise<void>
            • Returns Promise<void>

        • removeAccounts: (() => void)
            • (): void
            • Returns void

        • setAsActiveWallet: (() => void)
            • (): void
            • Returns void

        • signTransactions: ((transactions) => Promise<Uint8Array[]>)
            • (transactions): Promise<Uint8Array[]>
            • Parameters

              • transactions: Uint8Array[]

              Returns Promise<Uint8Array[]>

        • signing: boolean
        • unloadClient: (() => Promise<void>)
            • (): Promise<void>
            • Returns Promise<void>

removeAccount: ((acct) => void)

Type declaration

    • (acct): void
    • Parameters

      Returns void

removeAccountsByWalletId: ((id) => void)

Type declaration

    • (id): void
    • Parameters

      Returns void

removeAllAccounts: (() => void)

Type declaration

    • (): void
    • Returns void

selfId: string
setAsActiveAccount: ((acct) => void)

Type declaration

    • (acct): void
    • Parameters

      Returns void

signTransactions: ((txns) => Promise<Uint8Array[]>)

Type declaration

    • (txns): Promise<Uint8Array[]>
    • Parameters

      • txns: Uint8Array[]

      Returns Promise<Uint8Array[]>

storageController: undefined | StorageController
storageKey: undefined | string
subscribeToAccountChanges: ((handler, opts?) => (() => void))

Type declaration

    • (handler, opts?): (() => void)
    • Parameters

      • handler: ((a) => void)
          • (a): void
          • Parameters

            Returns void

      • Optional opts: {
            callOnSet: boolean;
        }
        • callOnSet: boolean

      Returns (() => void)

        • (): void
        • Returns void

Accessors

  • get activeAddress(): string
  • Returns string

  • get activeWallet(): undefined | {
        accounts: Account[];
        client: null | InkeyClient | PeraClient | MyAlgoClient | AlgoSignerClient | ExodusClient | DeflyClient | MnemonicClient;
        connect: ((p?) => Promise<Account[]>);
        connecting: boolean;
        disconnect: (() => Promise<void>);
        id: W_ID;
        initParams: boolean | ClientInitParams;
        inited: boolean;
        initing: boolean;
        isActive: boolean;
        isConnected: boolean;
        loadClient: (() => Promise<boolean>);
        metadata: ClientMetadata;
        reconnect: (() => Promise<void>);
        removeAccounts: (() => void);
        setAsActiveWallet: (() => void);
        signTransactions: ((transactions) => Promise<Uint8Array[]>);
        signing: boolean;
        unloadClient: (() => Promise<void>);
    }
  • Returns undefined | {
        accounts: Account[];
        client: null | InkeyClient | PeraClient | MyAlgoClient | AlgoSignerClient | ExodusClient | DeflyClient | MnemonicClient;
        connect: ((p?) => Promise<Account[]>);
        connecting: boolean;
        disconnect: (() => Promise<void>);
        id: W_ID;
        initParams: boolean | ClientInitParams;
        inited: boolean;
        initing: boolean;
        isActive: boolean;
        isConnected: boolean;
        loadClient: (() => Promise<boolean>);
        metadata: ClientMetadata;
        reconnect: (() => Promise<void>);
        removeAccounts: (() => void);
        setAsActiveWallet: (() => void);
        signTransactions: ((transactions) => Promise<Uint8Array[]>);
        signing: boolean;
        unloadClient: (() => Promise<void>);
    }

  • get activeWalletId(): null | W_ID
  • Returns null | W_ID

  • get isIniting(): boolean
  • Returns boolean

  • get isSigning(): boolean
  • Returns boolean

Methods

  • Parameters

    Returns void

  • Returns void

Generated using TypeDoc