@txnlab/use-wallet-mnemonic
v5.0.1
Published
Mnemonic wallet adapter for @txnlab/use-wallet
Readme
@txnlab/use-wallet-mnemonic
Mnemonic Wallet adapter for use-wallet, the Algorand wallet integration library.
Installation
npm install @txnlab/use-wallet @txnlab/use-wallet-mnemonicIf you use a framework adapter (@txnlab/use-wallet-react, -vue, -solid, or -svelte), install it in place of @txnlab/use-wallet.
Usage
import { WalletManager } from '@txnlab/use-wallet'
import { mnemonic } from '@txnlab/use-wallet-mnemonic'
const manager = new WalletManager({
wallets: [mnemonic()]
})For testing only — never use with real assets. Not available on MainNet. Supports scoped private key access via withPrivateKey. Options: persistToStorage, promptForMnemonic.
The factory also accepts an optional metadata option to override the wallet's display name and icon.
