Requirements
Before installing the MoonKey React SDK, ensure your project meets these requirements:- React 18 or higher — The SDK uses modern React features including hooks and concurrent rendering
- TypeScript 5 or higher — For TypeScript projects (recommended but optional)
Install the SDK
Add the MoonKey React SDK to your project using your preferred package manager:Additional dependencies
Solana support
If your application needs to support Solana wallets and transactions, install the Solana Web3.js library:Solana dependencies are only required if you plan to create Solana wallets or execute Solana transactions. EVM-only applications can skip this step.
Next.js configuration
If you’re using Next.js with webpack (not Turbopack), you may need to add polyfills for Node.js modules. Add the following to yournext.config.js:
next.config.js
Verify installation
After installation, verify the SDK is working by importing it in your code:Next steps
Now that you’ve installed the MoonKey React SDK, continue to:- Configure the MoonKey Provider to initialize the SDK
- Add authentication to your application
- Create embedded wallets for your users