Documentation
    Preparing search index...

    Function registerEnokiConnectWallets

    • Registers Enoki Connect wallets for your dApp.

      This function fetches wallet metadata for the provided public app slugs and registers them with the wallet standard. It returns the registered wallet instances and an unregister function to remove them if needed.

      Parameters

      • __namedParameters: {
            dappName: string;
            enokiApiUrl?: string;
            network?: SupportedNetwork;
            publicAppSlugs: string[];
        }

      Returns Promise<{ unregister: () => void; wallets: EnokiConnectWallet[] }>

      An object containing:

      • wallets: The array of registered EnokiConnectWallet instances.
      • unregister: A function to unregister all registered wallets.
      const { wallets, unregister } = await registerEnokiConnectWallets({
      publicAppSlugs: ['an-app-slug'],
      dappName: 'My Dapp',
      });