This section covers how to migrate between different versions of Biconomy smart accounts. AbstractJS provides migration paths that preserve your users’ account addresses, balances, and transaction history while upgrading to newer implementations.
Key Migration Concepts
Address Preservation
The most important concept in any smart account migration is address preservation. When you migrate a smart account:
External Contracts Continue Working
External contracts and services that interact with the account continue to work
Migration Types
AbstractJS supports the following migration paths:
V2 to Nexus Migration
V2 to Nexus Migration: Migrate from Biconomy Smart Account v2 to Nexus accounts
Nexus to Nexus Migration
Nexus to Nexus Migration: Upgrade between different versions of Nexus accounts
Why User Address Persistence Is Critical
Smart account addresses are the cornerstone of user identity and asset ownership in blockchain applications. It’s absolutely essential to maintain these addresses during and after migration for several key reasons:
Critical Reasons for Address Preservation
- Asset Preservation
- External Relationship Preservation
All user assets (tokens, NFTs, etc.) are associated with their account address. If this address changes or access is lost:
To avoid that, the address should be kept unchanged after the upgrade
Best Practices for Migration
Migration Best Practices
- Account address overriding
- Store Account Addresses Persistently
- Test Before Full Deployment
- Provide User Guidance
- Maintain Version Records
After migration, you must always use the
accountAddress parameter when recreating the account instance:Framework Support
AbstractJS Migration Support
AbstractJS provides comprehensive migration support with automatic handling of:
Migration Links
Choose Your Migration Path
Choose the appropriate migration path based on your current account type:
Upgrade from V2 to Nexus
Upgrade to a newer MEE suite
For additional support with migrations, please refer to the AbstractJS GitHub repository or join our Discord community.