Appearance
@swapped/connect-sdk / wallet-verification-react / WalletVerificationProvider
Function: WalletVerificationProvider()
WalletVerificationProvider(
props):Element
Defined in: src/react/wallet-verification/providers/WalletVerificationProvider.tsx:162
Provides a WalletVerificationClient and shared identity to React hooks.
Pass a pre-created client, or apiKey (and optional host overrides) to let the provider create one. A client instance may be passed to only one provider at a time.
Identity (customerId, network, address) follows those props when they change. Setters still work for in-tree edits, but throw while a verification is in flight. Prop updates apply even while busy so the next verify() uses the latest values.
Parameters
props
WalletVerificationProviderProps
Returns
Element
Example
tsx
<WalletVerificationProvider apiKey="pk_test_…" environment="staging" customerId="user-1234">
<VerifyPage />
</WalletVerificationProvider>