Installation
Install the required peer dependency:Basic usage
Configuration
The Pera wallet accepts the following configuration options:Custom WalletConnect bridge URL. Defaults to the standard Pera bridge.
Whether to show a toast notification when signing transactions.
Chain ID for the Algorand network:
416001: MainNet416002: TestNet416003: BetaNet4160: Custom network
Enable compact mode for the Pera Wallet UI.
Type definition
Features
Multi-account support
Pera Wallet supports connecting multiple accounts. All connected accounts are available through the wallet state.Mobile deep linking
On mobile devices, Pera Wallet uses deep linking to open the native app for transaction signing.Pera Discover auto-connect
When using the Pera Discover in-app browser, the wallet automatically connects without requiring user interaction.Methods
connect()
Initiates connection to Pera Wallet. Opens the Pera connection modal. Returns:Promise<WalletAccount[]>
disconnect()
Disconnects from Pera Wallet and clears the session. Returns:Promise<void>
signTransactions()
Signs transactions using Pera Wallet. See signing transactions for details. Parameters:txnGroup: Transaction or array of transactions to signindexesToSign?: Optional array of indexes to sign
Promise<(Uint8Array | null)[]>
Session management
Pera Wallet uses WalletConnect for session management. Sessions persist across page reloads and are automatically restored when the app initializes.Platform support
- Web: Full support
- Mobile: Full support via deep linking
- Desktop: Full support