/v1/mee/upgrade endpoint generates an upgrade quote for Nexus accounts running v2.1.0 implementation. Execute the returned quote via /v1/execute to upgrade the account to v2.2.1 while preserving the original address.
Endpoint
When to Use
Use this endpoint only for users with existing v2.1.0 deployments that need upgrading. New users automatically get v2.2.1 accounts.
- Check account status via /v1/mee/orchestrator to identify accounts needing upgrade
- Generate an upgrade quote via this endpoint
- Sign and execute the quote via /v1/execute
- Use the legacy address with
accountAddressparameter in future /v1/quote requests
Request Structure
Request Body
Signature Format: Upgrade transactions use personal message signing (
eth_sign), not EIP-712 typed data. This is because the upgrade operates on v2.1.0 accounts which use the legacy signing format. After upgrading, future transactions will use EIP-712 typed data.Fee Token Object
Example Request
Response Structure
Success Response (200)
The response follows the standard quote format with an additionalupgradeDetails field:
Response Fields
Upgrade Details Object
Error Responses
400 Bad Request
- NO_UPGRADE_NEEDED
- INVALID_CHAIN
- INVALID_MODE
No v2.1.0 deployments found that need upgrading on specified chains:Solution: Check the account status via
/v1/mee/orchestrator first to confirm upgrade is needed.Complete Upgrade Flow
Here’s the complete flow for upgrading legacy accounts:After Upgrade
Once the upgrade is complete:- Store the upgraded addresses - Save
upgradedAddressesfor future use, or query the /v1/mee/orchestrator endpoint anytime to retrieve this info - Use
accountAddressparameter - Pass the legacy address in/v1/quoterequests
Frequently Asked Questions
Can I upgrade multiple chains at once?
Can I upgrade multiple chains at once?
Yes. Pass multiple chain IDs in the All upgrades will be batched into a single supertransaction.
chainIds array:What versions are supported for upgrade?
What versions are supported for upgrade?
Currently, only upgrading from v2.1.0 to v2.2.1 is supported:
- v2.1.0 - Legacy version (source)
- v2.2.1 - Current version (target)
Is the upgrade reversible?
Is the upgrade reversible?
No. Once upgraded to v2.2.1, accounts cannot be downgraded. However, this is generally not needed as v2.2.1 is backward compatible.
Next Steps
- Learn about using upgraded accounts with accountAddress
- Check supported chains
- Explore execution modes