- Updated to support algosdk v3
- Enhanced network configuration capabilities
- Reorganized framework adapter APIs for better separation of concerns
Upgrading dependencies
Support for algosdk v3
Version 4 upgrades from algosdk v2 to v3. The extent of required changes will depend on how your application uses the SDK. Some applications may need minimal changes, while others may require more extensive updates.For a complete guide to migrating from algosdk v2 to v3, see the official migration guide.
Network configuration changes
Along with algosdk v3 support, v4 includes improvements to network configuration. The new approach is more flexible and allows configuring custom AVM-compatible networks without modifying the library’s codebase.Single network configuration
If your application uses a single public Algorand network (MainNet, TestNet, BetaNet), migrate from:Multiple network configuration
If your application supports multiple networks, migrate from:Custom networks
For other AVM networks (like Voi), you can use theNetworkConfigBuilder and its addNetwork method:
See the Configuration guide for more details about network configuration options.
Framework adapter changes
Network-related functionality has been moved fromuseWallet to a dedicated useNetwork hook:
Next steps
After completing the migration:Test your application
Test all wallet connections, transactions, and network switching functionality.
Review algosdk changes
Check the algosdk v3 migration guide for SDK-specific changes.
Configuration guide
Explore the enhanced network configuration options.
Switching networks
Learn about the new network switching capabilities.