Overview
There are two main approaches to detect Seeker users:- Platform Constants Check: A lightweight client-side check using React Native’s Platform API
- Seeker Genesis Token Verification: A secure on-chain verification method
Method 1- Platform Constants Check
The Platform Constants method checks device information using React Native’s built-in Platform API. This is a quick, lightweight check suitable for UI treatments and non-critical features.Checking Platform Constants
Model constant:
Use Cases
- UI Treatments: Show special welcome messages, themes, or layouts for Seeker users
- Feature Flags: Enable/disable certain features based on device type
- Analytics: Track usage patterns by device type
- Marketing: Display device-specific promotional content
Limitations
The main limitation is that this method is spoofable - rooted devices or modified apps can change the Platform constants to mimic a Seeker device. See the next method for a guaranteed way to check for interaction with a Seeker user.Method 2 - Seeker Genesis Token Verification
For use cases where you need a guarantee that you are interacting with a Seeker user, verify that the user’s wallet contains the Seeker Genesis Token (SGT). The SGT is a unique NFT that is minted to a user’s wallet only once per Seeker device. Owning an SGT represents verified ownership of a Seeker device. Learn more about the Seeker Genesis Token.Genesis Token Verification Process
The verification process has two main steps:Step 1 - Prove Wallet Ownership with SIWS
Client-side: Sign the SIWS Payload Use Mobile Wallet Adapter to request the user to sign the SIWS payload:signInResult from the MWA response needs to be verified on your backend server:
Step 2 - Check SGT Ownership
Server-side: Query an RPC to verify SGT ownership On your backend, make an RPC query to check if the user’s wallet contains a Seeker Genesis Token.- Reference this example script that uses the Helius
getTokenAccountsByOwnerV2API.
Step 3 - Combine SIWS Verification and SGT Check
On your backend server, combine the SIWS verification and SGT ownership check together to confirm the user is a verified Seeker owner:Use Cases
- Gated Content: Restrict certain features or content to verified Seeker users.
- Rewards Programs: Distribute exclusive rewards to Seeker owners.
- Anti-Sybil Measures: Prevent multiple claims or actions per device.
