Skip to main content

Overview

Use these prompts with Cursor AI to implement Phantom wallet integration. Copy the prompt for your preferred SDK and paste it into Cursor.
For the best experience, install the Phantom Cursor plugin. It bundles MCP servers, subagents, skills, and rules so Cursor can scaffold complete Phantom integrations, follow best practices automatically, and execute wallet operations — all without manual prompts.
For better results with manual prompts, add the Phantom Connect SDK MCP server to Cursor. This gives your AI assistant access to Phantom documentation for more accurate answers.

React SDK 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

  • [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

  • [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.

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