Skip to main content

25 min read

Overview​

Seeker, Solana Mobile's Android phone, ships with its own wallet, but a Solana app built on Mobile Wallet Adapter (MWA) still greets the phone's owner with a generic "Mobile Wallet Adapter" entry and a chooser asking which wallet to use. That chooser is an extra step for a user whose only wallet is the one on the phone. Seeker Connect removes it.

Seeker Connect is an SDK from Solana Mobile that opens the Seeker wallet directly from a Solana app. It adds a named "Connect with Seeker" button, or a "Seeker Connect" entry in whatever wallet picker the app already has. It runs on the official MWA libraries, so other wallets keep working and the signing calls stay the same.

This guide builds an Expo app that connects with one tap, restores the session on the next launch, signs the user in with Sign In With Solana (SIWS), signs a message, and sends a memo transaction on devnet.

The app builds the transaction with a blockhash from its RPC endpoint, has the wallet sign it, then submits it through that same endpoint and waits for it to finalize. Along the way, the app sorts Seeker Connect's error codes into the ones the app has to explain and the ones the SDK already shows. The guide closes with a mobile web page that makes the same connection from the browser on a Seeker.


TLDR
  • Seeker Connect opens the Seeker wallet in one tap, with no wallet chooser
  • It runs on Mobile Wallet Adapter, so other wallets keep working
  • Native apps connect on the device, and web pages connect through a relay
  • This guide builds an Expo app that sends a devnet memo, and a web page that signs a message

What You Will Need​


  • Node.js 24 or later.
  • Android Studio with an Android emulator, a screen PIN, and Mock MWA Wallet installed. The run section summarizes the setup, and the React Native MWA guide covers it in full.
  • A Seeker device for the web section only. The Expo section runs on an emulator.
  • cloudflared for the web section, to serve the page over https.
  • Some React Native and TypeScript experience.

The guide uses these packages and versions. The Expo template sets Expo 58 and React Native 0.88 for you.

PackageVersionUsed for
solana-mobile0.6.0CLI that scaffolds the Expo app
expo58.0.21App framework, set by the template
react-native0.88.0Native runtime, set by the template
@solana-mobile/seeker-connect-react-native0.2.0Seeker Connect for the Expo app
@wallet-ui/react-native-kit4.4.1Cluster config and the Solana Kit RPC client
@solana/kit8.6.0Transaction building and encoding
@solana-program/memo0.16.0Memo instruction for the devnet transaction
@solana-mobile/seeker-connect-wallet-standard0.2.0Seeker Connect for the web page
@solana-mobile/seeker-connect-ui0.2.0Connect button and dialogs for the web page
@wallet-standard/base1.1.1Wallet Standard types
@wallet-standard/features1.1.1Connect and disconnect features
@solana/wallet-standard-features1.5.0Solana message signing feature
vite8.3.5Dev server for the web page

How Does Seeker Connect Work?​

Seeker Connect is a dApp-side SDK. It leaves the wallet and the MWA protocol alone and changes how the wallet gets opened and how the session reaches it.

MWA lets a dApp name the wallet it wants through an endpoint-specific URI. Seeker Connect uses that mechanism with the App Link https://connect.solanamobile.com, which Android resolves to the certified wallet on the device, the Seeker wallet that Solana Mobile verifies to answer that link. There is no chooser because only one app on the phone can answer that link. After the first authorization, the SDK learns the wallet's own URI base and uses it for every later session.

The Cached Authorization​

On the first connection, the wallet shows the dApp's identity (a name, an https URI, and an icon) and asks the user to approve. The SDK stores the auth token it gets back. That token is what "connected" means. The next launch restores it without opening the wallet, and later requests replay it so the user is not asked for consent again. Disconnecting forgets the token locally and never opens the wallet.

The Signing Calls​

Every call opens its own short session, runs one request, and closes. The SDK exposes signIn for SIWS, signMessages, signTransactions, and signAndSendTransactions. Transactions cross as serialized bytes, so the app builds them with Solana Kit and hands over the bytes. This guide signs with signTransactions and submits through the app's own RPC endpoint.

Two Ways to Show Seeker Connect to Users​

Both sit on the same SDK.

MethodWhere it appearsWhat the user does
Branded buttonA "Connect with Seeker" button the app places itselfTaps it, approves in the wallet, and is connected
Picker listingA "Seeker Connect" entry in the app's existing Wallet Standard picker (web)Picks it like any other wallet, with no chooser after that

The Expo app in this guide uses the button. The web page registers the wallet with Wallet Standard, the shared interface browser wallets use to announce themselves to dApps, so any picker on the page would list it. It then uses the button as well.

Two Transports​

This is the one place the platforms differ. In a native app, the wallet opens a WebSocket on the phone and the app connects to it. Nothing leaves the device. A web page cannot rely on that path. Chrome asks the user for permission before a site may reach the local network, and a denied prompt leaves the dApp stuck. So on the web the page and the wallet both connect out to a Nostr relay, and the relay passes the session between them.

The dApp and the wallet encrypt payloads end to end, and the relay holds nothing. This guide uses the relay Solana Mobile runs at relay.solanamobile.com. A production web dApp needs a relay too.

Why Does the Web Section Need a Seeker?​

The web SDK always opens the App Link on its first connection, and only Solana Mobile's own wallet can answer it. A native app can fall back to the standard MWA chooser when no certified wallet is installed, which is why the Expo app runs on an emulator with a test wallet, and the web page does not.

Seeker Connect Error Codes​

Rejections carry a code. The ones the app meets most are:


  • authorization-declined and request-declined: the user said no in the wallet
  • cancelled: the user closed the Seeker Connect sheet, which is a normal outcome
  • association-failed: the wallet never finished connecting
  • session-closed: the session dropped before the app got a response

The native SDK also draws its own branded cards for wallet-side outcomes, such as "Request declined" and "Connection lost", so the app only needs to add what those cards do not say. Handle Wallet Errors by Code sorts the codes on that basis.

With the mechanism in place, the next step is to scaffold the Expo app.

Scaffold the Expo App​

The Solana Mobile CLI creates an Expo app with Seeker Connect installed and a provider that keeps the authorization in React state. Its default output is a demo with account and network screens. The --reset-project flag keeps the wiring and deletes the demo, which leaves an empty screen to build on.

npx solana-mobile@0.6.0 create seeker-connect-expo --template expo-kit-minimal --pm npm --reset-project
cd seeker-connect-expo

What persists after the reset:


  • index.js installs the crypto polyfill, then hands off to Expo Router.
  • constants/app-config.ts holds the cluster and the identity the wallet shows on approval.
  • components/app-providers.tsx sets up React Query and SeekerWalletProvider.
  • components/seeker-wallet-provider.tsx wraps @solana-mobile/seeker-connect-react-native in a React context.
  • constants/app-styles.ts holds the shared styles the home screen uses.
  • app/index.tsx is the home screen, empty for now.

Development builds only

@solana-mobile/seeker-connect-react-native is a native module, so the app needs a development build. Expo Go cannot load it. The module is Android only, like MWA itself.

The app also needs the Memo program client for the transaction it sends later:

npm install @solana-program/memo@0.16.0

Choose the RPC Endpoint​

The app reads balances, fetches blockhashes, submits transactions, and checks their status over RPC. The template points it at Solana's public devnet endpoint, https://api.devnet.solana.com, and that is all this demo needs. The Memo program is already deployed on devnet, so there is nothing to deploy.

The public endpoint is rate limited and not meant for production traffic. To swap in your own endpoint later, change constants/app-config.ts so an optional environment variable overrides the default. The identity in the same file is what the wallet shows on its approval sheet. Keep its URI on https, because the Seeker wallet ends the session on a custom scheme.

constants/app-config.ts
import { DappIdentity } from '@solana-mobile/seeker-connect-react-native'
import { createSolanaDevnet, SolanaCluster } from '@wallet-ui/react-native-kit'

// Uses the public devnet RPC unless EXPO_PUBLIC_SOLANA_RPC_URL is set, for example to a Quicknode endpoint
const cluster = createSolanaDevnet(process.env.EXPO_PUBLIC_SOLANA_RPC_URL)

export class AppConfig {
static cluster: SolanaCluster = cluster
// Replace with your app's https domain. The wallet shows this name and host on its approval sheet.
static identity: DappIdentity = {
name: 'Seeker Connect Demo',
uri: 'https://seeker-connect-demo.example.com',
icon: 'favicon.ico',
}
}

Use a Quicknode endpoint

For higher rate limits and a production path, create a Quicknode account, create an endpoint, select Solana and Devnet, and copy the HTTP Provider URL. Put it in a .env.local file in the project root, which the template's .gitignore already excludes:

EXPO_PUBLIC_SOLANA_RPC_URL=https://your-endpoint.solana-devnet.quiknode.pro/your-token/

If the dev server is running, restart it with npm run dev, which clears the cache, so Expo inlines the new value into the bundle. Anything in an EXPO_PUBLIC_ variable ships inside the APK, where anyone can read it. For a production app, restrict the endpoint with the security options in the Quicknode dashboard or route requests through your own backend.

Review the Seeker Wallet Provider​

The template's components/seeker-wallet-provider.tsx handles Seeker Connect for the whole app. It restores the session, connects and disconnects, and sends transactions, and the home screen calls it for each of those.

On launch, a React Query keyed on the chain calls SeekerConnect.configure, then SeekerConnect.restore, which returns the cached authorization without opening the wallet, or null when there is none:

const { data: authorization } = useQuery({
queryKey,
queryFn: async () => {
await SeekerConnect.configure({ chain, identity })
const restored = await SeekerConnect.restore()
return restored?.chain === chain ? restored : null
},
})

connect opens the wallet, stores the result in that same query, and returns the account. disconnect forgets the token and writes null back. Because the whole app reads the account from the query, a reload shows the user as connected without a wallet round trip.

sendTransactions is where the RPC endpoint comes in. The template's version fetches a recent blockhash through client.rpc, builds a version 0 transaction message with Solana Kit, compiles and encodes it, and hands the bytes to signAndSendTransactions, which has the wallet both sign and submit.

Sign in the Wallet, Submit Through the App's RPC​

This guide changes one thing in that method. The wallet only signs, and the app submits the signed bytes through its own RPC client. With sign-and-send, a session-closed rejection carries no signature, and the wallet may have already submitted the transaction, so the app cannot tell whether a retry is a duplicate. With sign-then-submit, the app holds the signature before the transaction leaves the device, and a dropped session during signing means nothing was sent.

Replace the sendTransactions method in components/seeker-wallet-provider.tsx with this version:

components/seeker-wallet-provider.tsx (sendTransactions)
// Signs in the wallet, then submits through the app's own RPC so the app holds the signature before anything is sent
async sendTransactions(instructions) {
const { address } = connected()
const { value: latestBlockhash } = await client.rpc.getLatestBlockhash().send()
const transaction = pipe(
createTransactionMessage({ version: 0 }),
(message) => setTransactionMessageFeePayer(address, message),
(message) => setTransactionMessageLifetimeUsingBlockhash(latestBlockhash, message),
(message) => appendTransactionMessageInstructions(instructions, message),
compileTransaction,
)
const payload = new Uint8Array(getTransactionEncoder().encode(transaction))
const [signed] = await (await seeker()).signTransactions([payload])
const wire = getBase64Decoder().decode(signed) as Base64EncodedWireTransaction
return client.rpc.sendTransaction(wire, { encoding: 'base64' }).send()
},

Then adjust the @solana/kit import at the top of the file. Add Base64EncodedWireTransaction and getBase64Decoder, and remove getBase58Decoder, which nothing uses anymore:

components/seeker-wallet-provider.tsx (imports)
import {
Address,
appendTransactionMessageInstructions,
Base64EncodedWireTransaction,
compileTransaction,
createTransactionMessage,
getBase64Decoder,
getTransactionEncoder,
Instruction,
pipe,
setTransactionMessageFeePayer,
setTransactionMessageLifetimeUsingBlockhash,
} from '@solana/kit'

sendTransaction on the RPC returns the base58 signature as soon as the node accepts the transaction, which is what the method now resolves with. The app decides what to tell the user when a call rejects, and waits for the transaction to land.

Handle Wallet Errors by Code​

Every rejection from the SDK is a SeekerConnectError with a code. The helper sorts the codes into three groups:


  • cancelled, where the app shows nothing
  • Wallet-side outcomes the SDK's own card already explains, where a second message would repeat it
  • Conditions the SDK does not present, where the app has to say something

Create utils/wallet-errors.ts:

utils/wallet-errors.ts
import { SeekerConnectError } from '@solana-mobile/seeker-connect-react-native'

// Returns a message to show the user, or null when there is nothing to add
export function describeWalletError(error: unknown): string | null {
if (!(error instanceof SeekerConnectError)) {
return error instanceof Error ? error.message : String(error)
}
switch (error.code) {
// The user closed the Seeker Connect sheet. A normal outcome, not an error.
case 'cancelled':
return null
// The SDK's own card has already told the user what happened in the wallet
case 'authorization-declined':
case 'request-declined':
case 'association-failed':
case 'wallet-error':
return null
case 'session-closed':
return 'The wallet session ended before the app got a response. Try again.'
case 'no-wallet-found':
return 'No Mobile Wallet Adapter wallet is installed on this device.'
case 'not-configured':
return 'Seeker Connect is not linked. Rebuild the development build after installing the package.'
case 'no-activity':
return 'Bring the app to the foreground before opening the wallet.'
case 'invalid-argument':
return 'The app sent the wallet a payload it could not decode.'
}
}

Errors that are not SeekerConnectError come from somewhere other than the wallet, most often the RPC, and their message is shown as is. A transaction from an account with no SOL fails that way, with a preflight message from the node.

Wait for Finalization​

An accepted transaction is not yet finalized. Solana targets finalization in about 150 ms, so the helper polls getSignatureStatuses every 200 ms until the cluster reports finalized, treats a transaction error as a failure, and gives up after 30 seconds.

Create utils/wait-for-finalized.ts:

utils/wait-for-finalized.ts
import { Signature } from '@solana/kit'
import { Client } from '@wallet-ui/react-native-kit'

// Polls the RPC until the cluster reports the signature as finalized
export async function waitForFinalized(rpc: Client['rpc'], signature: string, timeoutMs = 30_000) {
const deadline = Date.now() + timeoutMs
while (Date.now() < deadline) {
const {
value: [status],
} = await rpc.getSignatureStatuses([signature as Signature]).send()
if (status?.err) {
throw new Error(`Transaction failed: ${JSON.stringify(status.err)}`)
}
if (status?.confirmationStatus === 'finalized') return
await new Promise((resolve) => setTimeout(resolve, 200))
}
throw new Error(`Transaction ${signature} was not finalized within ${timeoutMs / 1000} seconds`)
}

With the helpers in place, the screen can stay focused on what the user sees.

Build the Home Screen​

The screen shows the network, which kind of wallet the device has, and the connected account. Before a connection it shows the Connect with Seeker button. After a connection is made it shows sign in, sign a message, send a memo, and disconnect. Every action runs through one run helper that clears the previous result, catches a rejection, and turns it into a message with describeWalletError.

Replace app/index.tsx with the following:

app/index.tsx
import { SeekerConnect, SeekerConnectButton } from '@solana-mobile/seeker-connect-react-native'
import { getAddMemoInstruction } from '@solana-program/memo'
import { getBase58Decoder } from '@solana/kit'
import { useQuery } from '@tanstack/react-query'
import { useState } from 'react'
import { Button, Linking, Pressable, Text, View } from 'react-native'
import { SafeAreaView } from 'react-native-safe-area-context'
import { useSeekerWallet } from '@/components/seeker-wallet-provider'
import { appStyles } from '@/constants/app-styles'
import { waitForFinalized } from '@/utils/wait-for-finalized'
import { describeWalletError } from '@/utils/wallet-errors'

const LAMPORTS_PER_SOL = 1_000_000_000

export default function HomeScreen() {
const wallet = useSeekerWallet()
const { account, chain, client, identity } = wallet
const [busy, setBusy] = useState(false)
const [result, setResult] = useState<string>()
const [error, setError] = useState<string>()
const [lastSignature, setLastSignature] = useState<string>()

// 'certified' on a Seeker, 'other' on an emulator with Mock MWA Wallet, 'none' with no wallet installed
const availability = useQuery({
queryKey: ['wallet-availability'],
queryFn: async () => {
await SeekerConnect.configure({ chain, identity })
return SeekerConnect.walletAvailability()
},
})

const balance = useQuery({
queryKey: ['balance', chain, account?.address],
enabled: !!account,
queryFn: () => client.rpc.getBalance(account!.address).send(),
})

// Runs one wallet action and turns a rejection into a message the user can act on
async function run(action: () => Promise<string>) {
setBusy(true)
setError(undefined)
setResult(undefined)
try {
setResult(await action())
} catch (e) {
const message = describeWalletError(e)
if (message) setError(message)
} finally {
setBusy(false)
}
}

const connect = () =>
run(async () => {
const connected = await wallet.connect()
return `Connected as ${connected.address}`
})

const signIn = () =>
run(async () => {
const { address, signedMessage } = await wallet.signIn({
chainId: chain,
statement: 'Sign in to the Seeker Connect demo',
})
return `Signed in as ${address}\n\n${new TextDecoder().decode(signedMessage)}`
})

const signMessage = () =>
run(async () => {
const signed = await wallet.signMessages(new TextEncoder().encode('Hello from Seeker Connect'))
// The wallet returns the message with its 64-byte signature appended
const signature = signed.slice(-64)
return `Signature: ${getBase58Decoder().decode(signature)}`
})

const sendMemo = () =>
run(async () => {
const memo = `gm from Seeker Connect at ${new Date().toISOString()}`
const signature = await wallet.sendTransactions([getAddMemoInstruction({ memo })])
// Keep the explorer link even if finalization times out
setLastSignature(signature)
await waitForFinalized(client.rpc, signature)
await balance.refetch()
return `Memo finalized: ${memo}`
})

const disconnect = () =>
run(async () => {
await wallet.disconnect()
setLastSignature(undefined)
return 'Disconnected'
})

const balanceText = balance.data
? `${Number(balance.data.value) / LAMPORTS_PER_SOL} SOL`
: balance.isError
? 'unavailable'
: 'loading'

return (
<SafeAreaView style={appStyles.screen}>
<View style={appStyles.stack}>
<Text style={appStyles.title}>{identity.name}</Text>
<View style={appStyles.card}>
<Text>Network: {chain}</Text>
<Text>Wallet on device: {availability.data ?? (availability.isError ? 'unknown' : 'checking')}</Text>
{account ? (
<>
<Text>Account: {account.address}</Text>
<Pressable onPress={() => balance.refetch()}>
<Text>Balance: {balanceText} (tap to refresh)</Text>
</Pressable>
</>
) : (
<Text>Not connected</Text>
)}
</View>

{account ? (
<View style={appStyles.stack}>
<Button disabled={busy} onPress={signIn} title="Sign In with Solana" />
<Button disabled={busy} onPress={signMessage} title="Sign Message" />
<Button disabled={busy} onPress={sendMemo} title="Send Memo Transaction" />
<Button disabled={busy} onPress={disconnect} title="Disconnect" />
</View>
) : (
// The SDK draws this button natively. Give it a height or it renders at zero size.
<SeekerConnectButton enabled={!busy} onPress={connect} style={{ height: 56 }} />
)}

{result ? <Text style={appStyles.textSuccess}>{result}</Text> : null}
{error ? <Text style={appStyles.textDanger}>{error}</Text> : null}
{lastSignature ? (
<Button
onPress={() => Linking.openURL(`https://explorer.solana.com/tx/${lastSignature}?cluster=devnet`)}
title="Open in Solana Explorer"
/>
) : null}
</View>
</SafeAreaView>
)
}

The sections below follow the screen from top to bottom.

Connect With One Tap​

SeekerConnectButton calls the provider's connect, and the SDK handles the wallet launch and approval. The availability query shows which path that takes: certified on a Seeker opens the wallet directly, and other on an emulator falls back to the standard MWA launch. On the next launch, the provider restores the session and the screen goes straight to the actions.

Sign In With Solana​

signIn builds a SIWS message from the payload, opens the wallet, and returns the address, the signed message, and the signature. The screen decodes signedMessage so you can read the exact text the wallet signed, including the domain, which defaults to the host of the identity URI. In a real app, your server issues the nonce and verifies the signature before it creates a session. The wallet authentication guide covers that server side.

Sign a Message​

signMessages takes the bytes to sign and returns the signed message for the connected account, which is the original bytes with the 64-byte signature appended.

Send a Memo Transaction​

getAddMemoInstruction from @solana-program/memo builds a single instruction for the Memo program. The provider turns it into a transaction with a fresh blockhash, has the wallet sign it, and submits it through the app's RPC client.

Once the signature comes back, the screen shows an explorer link, and waitForFinalized polls the same endpoint until the cluster finalizes the transaction. The screen then refreshes the balance. If polling times out, the link stays so the user can check the transaction. The memo includes a timestamp so each one is distinct onchain.

Disconnect​

disconnect clears the cached authorization and the query that holds the account, so the screen returns to the connect button. The wallet is not opened. Because the app no longer holds the token, the next connect asks the wallet for approval again.

Run the App on an Emulator​

The emulator has no Seeker wallet, so the app needs a test wallet that speaks MWA. Solana Mobile recommends Mock MWA Wallet, which mimics the Seeker wallet's approval sheets. Setting it up takes three steps:


  1. Set a screen PIN on the emulator. The wallet keeps its key behind device authentication and fails without one.
  2. Clone solana-mobile/mock-mwa-wallet, open mock-mwa-wallet/build.gradle in Android Studio, and run it on the emulator.
  3. Open Mock MWA Wallet and tap Authenticate to enable signing for development sessions. The authentication expires. If the wallet closes when you tap Approve and the app shows "Connection lost", tap Authenticate again and retry.

The React Native MWA guide walks through each step in detail. If you already set it up for that guide, the same wallet works here. Keep it as the only MWA wallet on the emulator. With two installed, Android shows a chooser, and the SDK's connection times out while it waits.

With the wallet ready, build the development client and start the dev server. The first build compiles the native module and takes several minutes:

npm run android

The screen shows Network: solana:devnet and Wallet on device: other, because the emulator has a test wallet and no certified one.

Tap Connect with Seeker. Mock MWA Wallet opens a sheet saying "Seeker Connect Demo wants to connect".

Tap Connect, and the app comes back with the account and its devnet balance. If the wallet asks for the PIN at any point, enter it and continue.

The demo app connected to Mock MWA Wallet, showing the account address, its balance, and the sign-in, sign message, send memo, and disconnect actions

On a Seeker device, the wallet opens in one tap. Wallet on device reads certified, and tapping the button opens the Seeker wallet straight away. Everything after the approval works the same.

The account needs devnet SOL for transaction fees, or the memo fails in preflight with "Transaction simulation failed". Copy the address from the screen and fund it from the Quicknode faucet, then tap the balance line to refresh it. Mock MWA Wallet keeps its key, so you only fund it once.

Now work through the actions:


  1. Sign In with Solana opens a "Sign message(s)" sheet that shows the full SIWS text, starting with seeker-connect-demo.example.com wants you to sign in with your Solana account: and ending with Chain ID: solana:devnet. Tap Approve, and the app shows the address and the same message.
  2. Sign Message opens the same kind of sheet. Tap Approve, and the app shows a base58 signature.
  3. Send Memo Transaction opens a sheet saying the app "is requesting a transaction". Tap Approve. The app submits the signed transaction and waits. The result reads Memo finalized: gm from Seeker Connect at ..., the balance drops by the fee, and Open in Solana Explorer shows the transaction with the memo in its instruction.

The demo app after the memo transaction, showing the finalized memo text, the reduced balance, and the Open in Solana Explorer button

To see an error path, tap Sign Message again and tap Cancel in the wallet. The SDK shows its "Request declined" card, and once you close it the app shows nothing more, because the helper returns null for request-declined.

Next, close the app and open it again. The provider restores the authorization, and the screen shows the account and balance without opening the wallet.

Finally, tap Disconnect. The screen returns to the connect button, and the next connection asks Mock MWA Wallet for approval again.

Add Seeker Connect to a Mobile Web Page​


This section needs a Seeker

The web SDK always opens the App Link on its first connection, and only the Seeker wallet answers it. There is no emulator or test wallet path for this part.

On the web, Seeker Connect registers itself as a Wallet Standard wallet named "Seeker Connect". A page with a wallet picker shows it by name from that point on, with no further code. A page without a picker can use the SDK's own button, which is what this page does. The page connects, restores the session on reload, and signs one message.

Solana Mobile's relay at relay.solanamobile.com is free to use. Any Nostr relay that allows public access and ephemeral events works in its place, including one you run yourself.

Create a Vite project with the vanilla TypeScript template and install the Seeker Connect packages, the Wallet Standard helpers, and Solana Kit for base58 encoding:

npm create vite@latest seeker-connect-web -- --template vanilla-ts
cd seeker-connect-web
npm install
npm install @solana-mobile/seeker-connect-wallet-standard@0.2.0 @solana-mobile/seeker-connect-ui@0.2.0 @wallet-standard/base@1.1.1 @wallet-standard/features@1.1.1 @solana/wallet-standard-features@1.5.0 @solana/kit@8.6.0
rm -r src/counter.ts src/assets

Replace index.html with a page that holds the button, two plain buttons for the connected state, and an output area:

index.html
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Seeker Connect Web Demo</title>
<link rel="stylesheet" href="/src/style.css" />
</head>
<body>
<main>
<h1>Seeker Connect Web Demo</h1>
<p id="status">Not connected</p>
<seeker-connect-button></seeker-connect-button>
<button id="sign" hidden>Sign Message</button>
<button id="disconnect" hidden>Disconnect</button>
<pre id="output"></pre>
</main>
<script type="module" src="/src/main.ts"></script>
</body>
</html>

Replace src/style.css with enough layout to read on a phone. The button element needs a height, like its native counterpart, and a rule that lets the hidden attribute override its built-in display:

src/style.css
body {
font-family: system-ui, sans-serif;
margin: 0;
padding: 16px;
}

main {
display: grid;
gap: 12px;
max-width: 480px;
}

seeker-connect-button {
height: 56px;
}

seeker-connect-button[hidden] {
display: none;
}

pre {
white-space: pre-wrap;
word-break: break-all;
}

Then replace src/main.ts. registerSeekerConnect returns the wallet object, so the page uses it directly through its Wallet Standard features: standard:connect, standard:disconnect, and solana:signMessage. The identity URI is the page's own origin, which is what the wallet shows on approval.

src/main.ts
import { defineSeekerConnectElements, type SeekerConnectButton } from '@solana-mobile/seeker-connect-ui'
import { registerSeekerConnect, SeekerConnectError } from '@solana-mobile/seeker-connect-wallet-standard'
import { getBase58Decoder } from '@solana/kit'
import { SolanaSignMessage } from '@solana/wallet-standard-features'
import type { WalletAccount } from '@wallet-standard/base'
import { StandardConnect, StandardDisconnect } from '@wallet-standard/features'

// Defines <seeker-connect-button> and the SDK's progress and error dialogs
defineSeekerConnectElements()

// Adds "Seeker Connect" to the page's Wallet Standard registry. Any wallet picker on the page lists it from here on.
const seeker = registerSeekerConnect({
identity: { name: 'Seeker Connect Web Demo', uri: window.location.origin, icon: '/favicon.svg' },
relayDomain: 'relay.solanamobile.com',
chain: 'solana:devnet',
})

const status = document.querySelector<HTMLElement>('#status')!
const output = document.querySelector<HTMLElement>('#output')!
const connectButton = document.querySelector<SeekerConnectButton>('seeker-connect-button')!
const signButton = document.querySelector<HTMLButtonElement>('#sign')!
const disconnectButton = document.querySelector<HTMLButtonElement>('#disconnect')!

let account: WalletAccount | undefined

function setAccount(next: WalletAccount | undefined) {
account = next
status.textContent = next ? `Connected as ${next.address}` : 'Not connected'
connectButton.hidden = !!next
signButton.hidden = !next
disconnectButton.hidden = !next
}

function showError(error: unknown) {
// The user closed the Seeker Connect sheet. Nothing to report.
if (error instanceof SeekerConnectError && error.code === 'cancelled') return
output.textContent = error instanceof SeekerConnectError ? `${error.code}: ${error.message}` : String(error)
}

connectButton.addEventListener('click', async () => {
// Blocks a second tap from opening another relay session
connectButton.disabled = true
try {
const { accounts } = await seeker.features[StandardConnect].connect()
setAccount(accounts[0])
} catch (error) {
showError(error)
} finally {
connectButton.disabled = false
}
})

signButton.addEventListener('click', async () => {
if (!account) return
try {
const [{ signature }] = await seeker.features[SolanaSignMessage].signMessage({
account,
message: new TextEncoder().encode('Hello from Seeker Connect'),
})
output.textContent = `Signature: ${getBase58Decoder().decode(signature)}`
} catch (error) {
showError(error)
}
})

disconnectButton.addEventListener('click', async () => {
await seeker.features[StandardDisconnect].disconnect()
setAccount(undefined)
output.textContent = ''
})

// Restores a cached session on page load without opening the wallet
seeker.features[StandardConnect]
.connect({ silent: true })
.then(({ accounts }) => setAccount(accounts[0]))
.catch(showError)

chain defaults to solana:mainnet when it is left out, on both the web and the native SDK, so set it here. The silent connect at the bottom only reads the cache. It resolves with no accounts when nothing is stored and never opens the wallet, so a page load never triggers a wallet prompt.

Mobile Wallet Adapter only runs in a secure context, so the page needs an https origin. A plain http:// address on your local network fails with a wallet error before the wallet opens. A Cloudflare quick tunnel gives the dev server a public https URL and needs no account.

Vite rejects requests for hostnames it does not recognize, so allow the tunnel's domain. Create vite.config.ts in the project root:

vite.config.ts
import { defineConfig } from 'vite'

export default defineConfig({
server: {
// Quick tunnel URLs are random subdomains of trycloudflare.com
allowedHosts: ['.trycloudflare.com'],
},
})

Start the dev server:

npm run dev

In a second terminal, open the tunnel:

cloudflared tunnel --url http://localhost:5173

cloudflared prints a https://<random-words>.trycloudflare.com URL. Open it in the browser on the Seeker. The page uses its origin as the identity URI, so the wallet shows the tunnel host on its approval sheet. Each run of cloudflared creates a new URL, and the page starts disconnected on a new one. Tap Connect with Seeker, approve in the wallet, and the status line shows the address. Sign Message returns a base58 signature, and reloading the page restores the connection without opening the wallet.

Wrapping Up​

You now have an Expo app where a Seeker owner taps one button to connect, stays connected across launches, signs in, signs messages, and signs a transaction that your app submits and confirms over RPC. The web page makes the same connection from the browser, through a relay the native app does not need. To build on it, replace the memo instruction with whatever your app sends. The sign-then-submit method, the error helper, and the finalization check work unchanged.

Resources​

Frequently Asked Questions​

Does Seeker Connect replace Mobile Wallet Adapter?

No. Seeker Connect is a dApp-side layer on top of the official Mobile Wallet Adapter libraries. It changes how the wallet is opened, through an App Link that targets the certified wallet, and adds branded UI and session caching. The protocol, the signing requests, and the wallet's approval flow are unchanged.

Will other Solana wallets still work after I add Seeker Connect?

Yes. Seeker Connect only targets the Seeker wallet. A native app without a certified wallet falls back to the standard MWA chooser, and a web page that already lists wallets through Wallet Standard keeps every other wallet in its picker. Seeker Connect appears as one more entry.

Why does the web version need a Nostr relay, and can the relay read my transactions?

A page in the browser cannot rely on reaching the wallet's local socket, because Chrome prompts the user before a site may access the local network and a denied prompt breaks the connection. So the page and the wallet both connect to a relay that passes the session between them. The payloads are encrypted end to end between the dApp and the wallet, so the relay forwards ciphertext and cannot read the requests or the transactions.

Can I test Seeker Connect without a Seeker phone?

The Expo app, yes. Install Mock MWA Wallet on an Android emulator, and the SDK falls back to the standard MWA launch for connect, sign-in, signing, and sending. The one-tap launch itself needs a certified wallet. The web page needs a Seeker, because its first connection always opens the App Link that only the Seeker wallet answers.

Does Seeker Connect work on iOS?

No. The native SDK is Android only, like Mobile Wallet Adapter, and the web SDK relies on an Android App Link to open the wallet. Seeker is an Android device, so an app built for it does not need an iOS path for this feature.

What happens if the session drops while a transaction is being sent?

The call rejects with the session-closed code. With the sign-then-submit method in this guide, the app has not sent anything until the wallet returns the signed bytes, so a drop during signing means nothing reached the network and you can try again. With signAndSendTransactions, the wallet may have submitted the transaction before the session ended and the error carries no signature, so check the account's recent transactions through your RPC endpoint before sending again.