Overview
Use these prompts with Cursor AI to implement Phantom wallet integration. Copy the prompt for your preferred SDK and paste it into Cursor.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
Get your App ID
Make sure you have your App ID from Phantom Portal before using any prompt.
Customize the prompt
Replace placeholder values such as
[YOUR_APP_ID], [YOUR_REDIRECT_URL], and [YOUR_SCHEME] with your actual values.Paste into Cursor
Open Cursor AI, press
Cmd+K (or Ctrl+K on Windows), and paste the complete prompt.Review the generated code
Cursor will generate a full implementation. Review the code to ensure it meets your requirements.
Need more customization?
These prompts generate a working integration. For advanced features, refer to the SDK documentation.React SDK docs
Explore React SDK features and hooks
React Native SDK docs
Review React Native SDK capabilities
Browser SDK docs
Learn about Browser SDK features
Developer support
Contact the Phantom developer support team