See our complete wallet implementation on Github
for a production-ready example of integrating Intersend apps into a wallet.
1. Install the SDK
2. Set Up Provider
Wrap your application with the UniversalPortabilityProvider:3. Implement Message Handlers
Your wallet needs to listen for events from Intersend—such as requests to connect, sign a message, or approve a transaction. Create these two hooks to handle communication between your wallet and embedded dApps:src/hooks/useMessageHandler.ts
src/hooks/useMessageHandler.ts
src/hooks/usePortHandler.ts
src/hooks/usePortHandler.ts
4. Create dApp Store Container
Intersend can serve as your “dApp store” aggregator. You can display all available apps, letting users pick which to launch. For instance:5. Render dApp Interface
When the user selects a dApp, you embed it:Message Protocol
The SDK uses a secure postMessage protocol with these main events:INTERSEND_CONNECT_REQUEST
: Initial wallet connection requestSIGN_MESSAGE_REQUEST
: Request to sign a messageTRANSACTION_REQUEST
: Request to send a transactionSWITCH_CHAIN_REQUEST
: Request to switch chain*_RESPONSE
: Corresponding response events
Contact Us
- Email: hello@intersend.io
- Telegram: @erturkarda