npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@dynamic-labs/multi-wallet

v4.49.0

Published

Multi-wallet is a toolkit for working with many different wallets to create and verify signatures

Readme

@dynamic-labs/multi-wallet

Overview

The multi-wallet package provides utility functions for filtering and configuring wallet connectors in the Dynamic Labs SDK. It contains helper functions used by the main SDK to determine which wallets should be available based on project settings and enabled chains.

Key Features

  • Wallet filtering: Filters wallet connectors based on enabled chains and project settings
  • Configuration building: Creates configuration objects needed to instantiate wallet connectors
  • Message generation: Generates standardized messages for wallet signature operations
  • Provider filtering: Determines which authentication providers are enabled

Core Functions

getSupportedWallets(opts)

Main function that returns a filtered list of available wallet connectors based on:

  • Project settings and enabled providers
  • Platform compatibility (mobile/desktop)
  • Wallet availability and installation status
  • User preferences and disabled connectors

getWalletConnectorConstructorOptions(params)

Builds configuration options for wallet connector constructors, including:

  • Network configurations for all supported chains
  • API providers and RPC configurations
  • Authentication modes and UI utilities
  • WalletConnect project settings

getEnabledWallets(props)

Filters wallet connectors based on enabled chains. Takes an object with:

  • enabledChains: Array of Chain types that are enabled
  • getSupportedWalletOpts: Configuration options for getting supported wallets

generateMessageToSign(params)

Creates standardized messages for wallet signing operations. Takes a MessageParameters object with fields like:

  • blockchain: The blockchain type (Chain)
  • domain: The domain requesting the signature
  • nonce: Unique nonce for the request
  • publicKey: User's public key
  • uri: URI of the requesting application
  • Additional optional fields for chainId, statement, resources, etc.

getEnabledProviders(providers)

Filters providers to return only those that are enabled (have enabledAt set, or are MagicLink with providerProjectId, or are Turnkey).

getSupportedChainsForWalletConnector(walletBook, walletConnector)

Returns the supported chains for a specific wallet connector by combining information from the wallet book and the connector's native supported chains.

Usage

import { getSupportedWallets } from '@dynamic-labs/multi-wallet';

const wallets = getSupportedWallets({
  settings: projectSettings,
  walletConnectorsProp: walletConnectors,
  walletBook: walletBookData,
  chainRpcProviders: rpcProviders,
  // ... other options
});

Usage in Dynamic SDK

This package is primarily used internally by the Dynamic SDK React Core package. The main usage patterns are:

  • Wallet List Building: getEnabledWallets is used to filter available wallets based on enabled chains
  • Configuration Setup: getWalletConnectorConstructorOptions builds the options needed to create wallet connector instances
  • Message Signing: generateMessageToSign creates SIWE-compliant messages for wallet authentication

Development

Running unit tests

npx nx test multi-wallet

Building the package

npx nx build multi-wallet