Wallet authentication
Start wallet-based sign-in with a supported Ethereum-compatible provider.
Clerk · Type Alias
Web3Strategy is Clerk's string-literal type for selecting a supported wallet-signature verification flow. It covers MetaMask, Base, Coinbase Wallet, OKX Wallet, and Solana.
Web3Strategy is a string-literal union used to select how Clerk verifies ownership of a user's Web3 wallet. Choose the strategy matching the wallet provider; Solana authentication additionally needs a walletName identifying the provider.
type Web3Strategy = "web3_metamask_signature" | "web3_base_signature" | "web3_coinbase_wallet_signature" | "web3_okx_wallet_signature" | "web3_solana_signature"type Web3Strategy =
| "web3_metamask_signature"
| "web3_base_signature"
| "web3_coinbase_wallet_signature"
| "web3_okx_wallet_signature"
| "web3_solana_signature";This declaration constrains Web3 authentication and verification calls to Clerk's supported wallet-signature strategies.
Start wallet-based sign-in with a supported Ethereum-compatible provider.
Complete a sign-up verification using a wallet-generated cryptographic signature.
Select a Solana wallet provider for a Solana signature flow.
Web3Strategy is a union of five string literals: MetaMask, Base, Coinbase Wallet, OKX Wallet, and Solana signature strategies. It lets Clerk select the wallet-specific verification flow.
Follow-up: Why should callers avoid arbitrary strings? TypeScript can reject unsupported strategies at compile time, preventing requests that Clerk cannot process.
Use the strategy literal that corresponds to the wallet being verified, such as web3_metamask_signature or web3_coinbase_wallet_signature. The type represents a Web3 verification strategy rather than a generic OAuth strategy.
Follow-up: What additional input is needed for Solana? Pass walletName as well as web3_solana_signature, because Clerk requires the provider name for that flow.
Web3Strategy is used by Clerk's Web3 sign-in and sign-up verification APIs. Those flows verify wallet ownership through a cryptographic signature instead of traditional credentials.
Follow-up: How does a Solana flow differ operationally? It still uses a wallet signature, but Clerk also needs the selected Solana wallet provider identified by walletName.
SignInSignUpSignInFirstFactorWeb3SignatureFactor