@txnlab/use-wallet-vue
use-wallet
A framework-agnostic Algorand wallet integration library with reactive adapters for React, Vue, SolidJS, and Svelte.
Features
- Modular wallet adapters — install only the wallets you need; each wallet SDK is bundled in its own package
- Factory function configuration with full TypeScript support
- Switch between accounts, wallets, and networks reactively
- Sign and send transactions, ARC-60 data signing, session restore
availableWalletslist filtered by each wallet's declared network capabilities- Typed event emitter for observing wallet lifecycle events
- ESM-only, tree-shakeable packages
Quick Start
Install the framework adapter (or the core package for vanilla JS/TS) plus the wallet adapters you want to support:
npm install @txnlab/use-wallet-react @perawallet/use-wallet-pera @txnlab/use-wallet-defly algosdk
import { pera } from '@perawallet/use-wallet-pera'
import { WalletManager, WalletProvider, useWallet } from '@txnlab/use-wallet-react'
import { defly } from '@txnlab/use-wallet-defly'
const manager = new WalletManager({
wallets: [pera(), defly()],
defaultNetwork: 'testnet'
})
function App() {
return (
<WalletProvider manager={manager}>
<YourApp />
</WalletProvider>
)
}
Packages
| Package | Description |
|---|---|
@txnlab/use-wallet |
Core library (framework-agnostic) |
@txnlab/use-wallet-react |
React adapter |
@txnlab/use-wallet-vue |
Vue adapter |
@txnlab/use-wallet-solid |
SolidJS adapter |
@txnlab/use-wallet-svelte |
Svelte adapter |
Wallet adapters: Pera · Defly · Exodus · Kibisis · KMD · Lute · Mnemonic · W3 Wallet · WalletConnect · Web3Auth
A custom provider (built into core) supports integrating any other wallet, and third-party adapter packages work without changes to this repository — see the supported wallets docs.
Migrating from v4?
See the v4 to v5 migration guide. v4 documentation remains available at txnlab.gitbook.io/use-wallet/v4.
Visit txnlab.gitbook.io/use-wallet for docs, guides, and examples!
Become a sponsor!
Related Packages
@interchainjs/vue is a JavaScript library providing vue hooks for interacting wi...
injective-vue is a JavaScript library providing vue hooks for interacting with i...
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 5.1.1 | ^3.0.0 | MIT | |
| 5.1.0 | ^3.0.0 | MIT | |
| 5.0.1 | ^3.0.0 | MIT | |
| 5.0.0 | ^3.0.0 | MIT | |
| 4.6.0 | ^3.0.0 | MIT | |
| 4.5.0 | ^3.0.0 | MIT | |
| 4.4.0 | ^3.0.0 | MIT | |
| 4.3.1 | ^3.0.0 | MIT | |
| 4.3.0 | ^3.0.0 | MIT | |
| 4.2.0 | ^3.0.0 | MIT | |
| 4.1.0 | ^3.0.0 | MIT | |
| 4.0.1 | ^3.0.0 | MIT | |
| 4.0.0 | ^3.0.0 | MIT | |
| 3.12.0 | ^3.0.0 | MIT | |
| 3.11.1 | ^3.0.0 | MIT | |
| 3.11.0 | ^3.0.0 | MIT | |
| 3.10.1 | ^3.0.0 | MIT | |
| 3.10.0 | ^3.0.0 | MIT | |
| 3.9.0 | ^3.0.0 | MIT | |
| 3.8.0 | ^3.0.0 | MIT | |
| 3.7.2 | ^3.0.0 | MIT | |
| 3.7.1 | ^3.0.0 | MIT | |
| 3.7.0 | ^3.0.0 | MIT | |
| 3.6.0 | ^3.0.0 | MIT | |
| 3.5.0 | ^3.0.0 | MIT | |
| 3.4.0 | ^3.0.0 | MIT | |
| 3.3.0 | ^3.0.0 | MIT | |
| 3.2.1 | ^3.0.0 | MIT | |
| 3.2.0 | ^3.0.0 | MIT | |
| 3.1.6 | ^3.0.0 | MIT |
Showing the latest 30 of 36. See every release on npm
Pre-releases (35)
| Version | Released | Vue | License |
|---|---|---|---|
| 5.2.0-next.3 | ^3.0.0 | MIT | |
| 5.2.0-next.2 | ^3.0.0 | MIT | |
| 5.2.0-next.1 | ^3.0.0 | MIT | |
| 5.1.0-next.2 | ^3.0.0 | MIT | |
| 5.1.0-next.1 | ^3.0.0 | MIT | |
| 5.0.0-rc.4 | ^3.0.0 | MIT | |
| 5.0.0-rc.3 | ^3.0.0 | MIT | |
| 5.0.0-rc.2 | ^3.0.0 | MIT | |
| 5.0.0-rc.1 | ^3.0.0 | MIT | |
| 4.0.0-beta.6 | ^3.0.0 | MIT | |
| 4.0.0-beta.5 | ^3.0.0 | MIT | |
| 4.0.0-beta.4 | ^3.0.0 | MIT | |
| 4.0.0-beta.3 | ^3.0.0 | MIT | |
| 4.0.0-beta.2 | ^3.0.0 | MIT | |
| 4.0.0-beta.1 | ^3.0.0 | MIT | |
| 3.0.0-rc.3 | ^3.0.0 | MIT | |
| 3.0.0-rc.2 | ^3.0.0 | MIT | |
| 3.0.0-rc.1 | ^3.0.0 | MIT | |
| 3.0.0-beta.10 | ^3.0.0 | MIT | |
| 3.0.0-beta.9 | ^3.0.0 | MIT | |
| 3.0.0-beta.8 | ^3.0.0 | MIT | |
| 3.0.0-beta.7 | ^3.0.0 | MIT | |
| 3.0.0-beta.6 | ^3.0.0 | MIT | |
| 3.0.0-beta.5 | ^3.0.0 | MIT | |
| 3.0.0-beta.4 | ^3.0.0 | MIT | |
| 3.0.0-beta.3 | ^3.0.0 | MIT | |
| 3.0.0-beta.2 | ^3.0.0 | MIT | |
| 3.0.0-beta.1 | ^3.0.0 | MIT | |
| 3.0.0-alpha.16 | ^3.3.13 | MIT | |
| 3.0.0-alpha.15 | ^3.3.13 | MIT |
Showing the latest 30 of 35. See every release on npm