Skip to main content
Make sure you’ve completed the setup guide before proceeding.

πŸ“¦ Installation

First, install the Moongate SDK in your React project: Using npm:
npm install @moongate/sdk
Using yarn:
yarn add @moongate/sdk

πŸš€ Quick Setup (1 minute)

Simply wrap your app with MoonGateProvider and add the connect button:
src/App.tsx
import React from 'react';
import { MoonGateProvider, MoongateConnectButton } from '@moongate/sdk';
import '@moongate/sdk/styles.css';

function App() {
  return (
    <MoonGateProvider apiKey="your-api-key-here">
      <MoongateConnectButton />
    </MoonGateProvider>
  );
}

export default App;

Complete integration in just 3 lines of code

πŸŽ‰ You’re Done!

Your React application now has full Solana wallet integration! The Moongate SDK automatically handles:
  • βœ… Wallet detection and connection
  • βœ… Transaction signing
  • βœ… Network switching
  • βœ… Error handling
  • βœ… Mobile responsiveness

πŸ“– Next Steps

πŸ†˜ Need Help?

⌘I