@solana/wallet-adapter drives it like any other Solana wallet. This page documents the exact surface it advertises.
Privy requires the user to confirm every signature and transaction on the provider’s own page.
Each request opens one popup there. Signing three transactions opens three popups, in sequence,
even when one Wallet Standard call carries all three. Combine instructions into a single
transaction instead.
@solana/wallet-adapter’s useWallet hook. App code never touches the feature map.
signMessage and signTransaction stay undefined until the app connects a wallet that advertises those features. Guard on them before calling.
What a connection covers
A connection covers one chain namespace. The handshake carries exactly one address, so a requester receives a single account per namespace. A cluster, Solana’s term for a network such as mainnet or devnet, scopes each registered wallet.wallet.chainsholds exactly one cluster, in alias form, such assolana:mainnetwallet.accountsholds zero accounts before connecting and exactly one afteraccount.addressis the base58 address, andaccount.publicKeyis that address decoded to 32 bytes- The SDK keys the stored approval per namespace, so two clusters of one provider app share it
- To add an EVM address, register a separate EVM connector and open a second connection
Wallet Standard features
The wallet advertises six Wallet Standard feature keys and nothing else. It exposes noprivy: namespace, so a provider wallet is never mistaken for a first-party Privy wallet.
App code reaches these through
useWallet rather than calling them directly. standard:connect and standard:events are also the adapter’s entry requirement. A wallet without both never appears in wallets.
Both transaction features declare supportedTransactionVersions of ['legacy', 0]. Version 0 covers versioned transactions with address lookup tables.
The feature map has no signTypedData and no switchChain. A connection cannot switch clusters.
Request and response encodings
The Wallet Standard methods take and returnUint8Array, so app code never encodes anything by hand. The encodings below are what travels between the requester and the provider, and they are not uniform. A provider implementation has to match them byte for byte.
account is the base58 address as a plain string, not a Wallet Standard account object. transaction and message are base64-encoded bytes. params carries exactly one element: the chain travels on the request envelope.
signMessage
To thesignMessage method returned by useWallet, pass the message as bytes, so encode a string first:
signTransaction
To thesignTransaction method returned by useWallet, pass a transaction. It signs without broadcasting and returns the same transaction type it was given:
The signed transaction. Call
signed.serialize() for the raw bytes.sendTransaction
This routes tosolana:signAndSendTransaction, so the provider broadcasts and picks the commitment. The adapter still uses the app’s connection to prepare the transaction first:
Reaching the features directly
To call a Wallet Standard feature directly, reach it throughwallet.adapter.wallet. useWallet returns {adapter, readyState}, so the features sit one level deeper than the adapter:
'standard' in wallet.adapter narrows a union to StandardWalletAdapter, which carries wallet and its feature map. Wallet Standard then types that map as a union of transaction features, so the feature key needs its own check before it can be indexed.
Cluster mismatch checks
The two transaction features compare thechain on the input against the cluster the connection was made on. The adapter throws that input’s request, so an app using it cannot sign a devnet transaction against mainnet.
The wallet processes inputs one at a time. A mismatch on a later input throws only after the earlier ones have already signed, and in the case of signAndSendTransaction, broadcast.
The provider binds differently. It rejects a request whose namespace differs from the one the user approved, and a Solana request must name the account that connection carries. It does not check the cluster, so a provider that wants cluster pinning compares request.chain against connection.chain itself.
