Overview
Use these prompts with Cursor AI to quickly implement Phantom wallet integration. Copy the prompt for your preferred SDK and paste it into Cursor to generate a complete, production-ready implementation.React SDK prompt
View React SDK prompt
View React SDK prompt
What to replace in the prompt
What to replace in the prompt
- [YOUR_APP_ID]: Replace with your App ID from Phantom Portal
- [YOUR_REDIRECT_URL]: Replace with your authentication callback URL (must be allowlisted in Phantom Portal)
React Native SDK prompt
View React Native SDK prompt
View React Native SDK prompt
What to replace in the prompt
What to replace in the prompt
- [YOUR_APP_ID]: Replace with your App ID from Phantom Portal
- [YOUR_SCHEME]: Replace with your custom URL scheme (for example,
myapp)
Browser SDK prompt
View Browser SDK prompt
View Browser SDK prompt
What to replace in the prompt
What to replace in the prompt
- [YOUR_APP_ID]: Replace with your App ID from Phantom Portal
- [YOUR_REDIRECT_URL]: Replace with your authentication callback URL (must be allowlisted in Phantom Portal)
Step-by-step guide for using the prompts
1
Get your App ID
Make sure you have your App ID from Phantom Portal before using any prompt.
2
Customize the prompt
Replace placeholder values such as
[YOUR_APP_ID], [YOUR_REDIRECT_URL], and [YOUR_SCHEME] with your actual values.3
Paste into Cursor
Open Cursor AI, press
Cmd+K (or Ctrl+K on Windows), and paste the complete prompt.4
Review the generated code
Cursor will generate a full implementation. Review the code to ensure it meets your requirements.
5
Test the integration
Run your application and test wallet connection, message signing, and transaction flows. Phantom Connect manages authentication using social login through Google or Apple.