Skip to content

Commit

Permalink
Add important information about Phantom Wallet
Browse files Browse the repository at this point in the history
  • Loading branch information
quetool committed Jan 18, 2025
1 parent 5040f90 commit 8af2c03
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions docs/appkit/flutter/core/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -184,19 +184,26 @@ Coinbase Wallet is enabled by default even if, in order to function properly, a

### Phantom Wallet

Phantom Wallet does not use the WalletConnect protocol for communication between the dApp and the wallet, instead it provides an internal API mechanism.
:::caution important note
Phantom Wallet support is available from `reown_appkit: ^1.4.0-beta01` and is currently in beta. Any feedback is appreciated.
:::

This means that pairing topic, session topic, session events and other session-related features are not available when connecting to Phantom Wallet.
Phantom Wallet does not use the WalletConnect protocol for communication between the dApp and the wallet, instead it provides an internal API mechanism based on deep/universal links.

Furthermore, Phantom Wallet API only supports interaction with Solana blockchains.
This means that pairing topic, session topic, session events and other session-related features are not available when connecting to Phantom Wallet and the interation is really basic. Dapp sends a request, Phantom Wallet responds. That's all.

However, there are no extra steps for you to support Phantom Wallet on your dApp.
Furthermore, Phantom Wallet deep/universal links mechanism supports interaction only with Solana blockchain.

:::caution important note
In order to support Phantom Wallet interactions a few extra steps has to be performed, only if you haven't implemented [Link Mode](./link-mode.mdx) already.

Phantom Wallet support is available from `reown_appkit: ^1.4.0-beta01` and is currently in beta. Any feedback is appreciated.

:::
1. First, be sure you already have your redirection back configuration properly set in place. See [Redirect to your dApp](./usage#redirect-to-your-dapp)
2. Then, you will have to implement platform specific steps in order to be able to catch Phantom Wallet callback links. See [Link Mode Platform specific steps](./link-mode#platform-specifics)
3. Finally, you will have to implement your own Depp Link mechanis on Flutter side and when a link is received through it, you just call `await _appKitModal.dispatchEnvelope(link);`

As an example you can see how we do it on our Sample Dapp by follwoing...
- [Android's platform specific code](https://github.com/reown-com/reown_flutter/blob/develop/packages/reown_appkit/example/base/android/app/src/main/kotlin/com/example/dapp/MainActivity.kt)
- [iOS's platform specific code](https://github.com/reown-com/reown_flutter/blob/develop/packages/reown_appkit/example/base/ios/Runner/AppDelegate.swift)
- [Dart's specific code](https://github.com/reown-com/reown_flutter/blob/develop/packages/reown_appkit/example/base/lib/utils/deep_link_handler.dart)

## Example

Expand Down

0 comments on commit 8af2c03

Please sign in to comment.