Migration Steps
1
Update your internal database
Ensure your
user_id field can handle 64-bit unsigned integers stored as strings.2
Generate M-addresses
Use a Stellar SDK to generate an M-address for each user by combining your pooled G-address with the user’s ID.
3
Display the M-address
Update your UI to show the M-address. You can stop showing a separate “Memo” field for users who use the M-address.
4
Use Stellar Address Kit for Routing
Replace your custom parsing logic with
extractRouting. This ensures that even if a user sends to your G-address with an ID memo, the routing will still work correctly.