Installation
1. Install the package
You can add Mobile Wallet Adapter to your web application by installing:
2. Register the wallet
In the root of your web application, invoke the registerMwa function.
CAUTIONregisterMwa must run in the browser, not during server-side rendering. If you’re using a framework with Server Side Rendering (e.g. Next.js), ensure it is invoked in a non-SSR context - for example, inside a 'use client' component.
Once registered, MWA will appear as a wallet option for users browsing on Android Chrome. The connection is handled locally via Android Intents (same as native Android apps).
Code samples on this page are subject to the Apache 2.0 license.