Use this file to discover all available pages before exploring further.
Before proceeding setup a basic expo project. Or you can follow me to setup a production-ready Boilerplate project
by Infinite Red Team.
npx ignite-cli@latest new solana-mwa-starter
This Boilerplate code will provide you with a predefined project structure with standard packages already configured.
Let us just leverage the existing setup and ignore the rest as they are not relevant to our tutorial.
Well, It is a protocol that allows mobile apps to connect to solana wallets that implement the MWA protocol. In simple terms
you can interact with wallets that support MWA specification from your mobile app and perform actions like signing transactions &
messages, SIWS …
All we are doing here is creating RPC and RPC subscriptions objects and using context provider to reuse
them throughout our application. Actually we wont be needing rpc subscriptions object, but I just added it to make
the code look similar to the official kit docs.Now go to root file (in my case its _Layout.tsx) and wrap your app with KitClientProvider
Next, Install the wrapper of MWA for Kit SDK called @solana-mobile/mobile-wallet-adapter-kit. This package provides us typed utilities
making it easier to work with MWA and Kit SDK.