Overview
DeflyWebWallet is a web-based wallet provider that implements the ARC-0027 (AVM Web Provider) standard. It extends the AVMProvider base class to provide integration with Defly’s web wallet.
Unlike the mobile-focused DeflyWallet which uses WalletConnect, DeflyWebWallet connects directly through the browser using the AVM Web Provider standard.
Installation
Install the required peer dependencies:Basic Usage
Configuration
DeflyWebWallet does not require any configuration options. It automatically detects and connects to the Defly Web Wallet if available in the browser.
Features
ARC-0027 Compliance
DeflyWebWallet implements the ARC-0027 standard for AVM Web Providers, which provides:- Standardized connection flow
- Transaction signing with user approval
- Account access management
- Network detection and validation
Provider Detection
The wallet automatically detects the presence of the Defly Web Provider in the browser:Session Management
Sessions are managed through the AVM Web Provider interface and persist across page reloads.Methods
DeflyWebWallet inherits all methods fromAVMProvider and BaseWallet.
connect()
Initiates the connection flow with the Defly Web Wallet.Promise<WalletAccount[]>
disconnect()
Disconnects from the Defly Web Wallet and clears the session.Promise<void>
signTransactions()
Signs transactions using the Defly Web Wallet.Array of transactions to sign
Indexes of transactions to sign (optional, defaults to all)
Promise<(Uint8Array | null)[]>
Platform Support
DeflyWebWallet requires the Defly Web Wallet browser extension or web application to be installed and accessible.
| Platform | Supported |
|---|---|
| Desktop browsers | ✅ Yes |
| Mobile browsers | ✅ Yes (with web app) |
| Node.js | ❌ No |
Error Handling
DeflyWebWallet can throw ARC-0027 standard errors:MethodCanceledError- User cancelled the operationMethodNotSupportedError- Method not supported for the networkMethodTimedOutError- Operation timed out (>= 3 minutes)NetworkNotSupportedError- Network not supportedUnknownError- Unexpected error occurred
Class Definition
See Also
- DeflyWallet - Mobile-focused Defly integration using WalletConnect
- BaseWallet - Base class for all wallet providers
- Supported Wallets - Complete list of supported wallets