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

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

        An array of public app slugs to register. You can obtain these slugs from the wallet developer.

      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',
      });