How it works
Hardware wallets don’t connect directly to the browser — they work through a software wallet that acts as a bridge to the hardware device. When a software wallet supports Ledger, it exposes the hardware wallet’s accounts and routes signing requests to the device. Dynamic’s hardware wallet support works at two levels:- Discovery — identify which wallet providers in your project support a given hardware wallet vendor
- Connection — pass the hardware wallet vendor when connecting, so the wallet provider knows to use the hardware device
Checking hardware wallet support
UsegetAvailableWalletsToConnect and canConnectWithHardwareWallet to find which wallet providers
in your project support Ledger:
Connecting with a hardware wallet
Find the first available Ledger-compatible provider and passhardwareWalletVendor when connecting:
Detecting hardware wallet accounts
UseisHardwareWalletAccount to check if a connected wallet account came from a hardware wallet:
Filtering providers by hardware wallet support
Build a UI that shows only wallet providers compatible with a given hardware wallet:Chain support
Ledger hardware wallet support is currently available for Bitcoin only, via the following wallet providers: Leather, Magic Eden, Phantom, and Xverse. See Adding Bitcoin Extensions for setup and a full connection example.API reference
- canConnectWithHardwareWallet - Check if a provider supports a hardware wallet vendor
- isHardwareWalletAccount - Check if a wallet account is from a hardware wallet
- connectWithWalletProvider - Connect a wallet (supports
hardwareWalletVendor) - connectAndVerifyWithWalletProvider - Connect and verify a wallet (supports
hardwareWalletVendor)