Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add documentation for Phantom Token Pages #384

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions phantom-deeplinks/phantom-token-pages.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Phantom Token Pages

Phantom provides shareable, web-accessible token pages that display detailed token information. These pages provide a seamless experience whether accessed through the Phantom wallet app or via web browsers.

## Generating Token Page URLs

To create a shareable token page URL:

1. Open the desired token page in your Phantom app
2. Tap the share button
3. Copy or share the generated URL

The URLs follow this format:

```
https://phantom.com/tokens/<chain>/<token_address>
```

For example, the WIF token on Solana can be accessed at:

```
https://phantom.com/tokens/solana/EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm
```

## Key Features

### Universal Deep Linking

When accessed on mobile devices with Phantom installed, token page URLs automatically open the corresponding token details page within the Phantom app. For users without Phantom installed, the links gracefully fallback to the web view.

### Quick Access to Swapper

The web view includes a QR code that, when scanned, deep links directly to the token's swap screen within the Phantom app. This enables quick and convenient token swaps for mobile users.

### Enhanced Social Sharing

Each token page generates dynamic OpenGraph images that display essential token information and price charts. When shared on social media platforms, these rich previews provide immediate context about the token's performance and status.