Skip to main content
After a user signs a message using the Phantom Connect SDK, verify the signature on your backend to prove they own the wallet.

Get a signature (frontend)

First, have the user sign a message using the SDK. The SDK returns the signature as raw bytes (Uint8Array), so encode it as base58 with bs58 (npm install bs58) before sending it to your backend:

Verify a signature (backend)

Install dependencies

Verify a Solana signature

API route example (Next.js)