Skip to content

@swapped/connect-sdk / wallet-verification-react / UseWalletVerificationResult

Type Alias: UseWalletVerificationResult ​

UseWalletVerificationResult = object

Defined in: src/react/wallet-verification/hooks/useWalletVerification.ts:14

Result of useWalletVerification.

Properties ​

address ​

address: string

Defined in: src/react/wallet-verification/hooks/useWalletVerification.ts:23

Address the user claims to control.


client ​

client: WalletVerificationClient

Defined in: src/react/wallet-verification/hooks/useWalletVerification.ts:15


customerId ​

customerId: string

Defined in: src/react/wallet-verification/hooks/useWalletVerification.ts:17

Your id for the end user (not a Swapped id).


isBusy ​

isBusy: boolean

Defined in: src/react/wallet-verification/hooks/useWalletVerification.ts:34

true while any prepare() / verify() or Coinbase start / open / complete is running. Disable identity inputs.


network ​

network: WalletVerificationNetwork

Defined in: src/react/wallet-verification/hooks/useWalletVerification.ts:20


selectedWallet ​

selectedWallet: WalletVerificationAvailableWallet | null

Defined in: src/react/wallet-verification/hooks/useWalletVerification.ts:26

Wallet the UI currently has selected. You store this; the SDK does not pick one.


setAddress ​

setAddress: (address) => void

Defined in: src/react/wallet-verification/hooks/useWalletVerification.ts:24

Parameters ​

address ​

string

Returns ​

void


setCustomerId ​

setCustomerId: (customerId) => void

Defined in: src/react/wallet-verification/hooks/useWalletVerification.ts:19

Throws ConnectSdkErrorCode.WALLET_VERIFICATION_IN_PROGRESS while a run is in flight.

Parameters ​

customerId ​

string

Returns ​

void


setNetwork ​

setNetwork: (network) => void

Defined in: src/react/wallet-verification/hooks/useWalletVerification.ts:21

Parameters ​

network ​

WalletVerificationNetwork

Returns ​

void


setSelectedWallet ​

setSelectedWallet: (wallet) => void

Defined in: src/react/wallet-verification/hooks/useWalletVerification.ts:27

Parameters ​

wallet ​

WalletVerificationAvailableWallet | null

Returns ​

void


verification ​

verification: WalletVerification | null

Defined in: src/react/wallet-verification/hooks/useWalletVerification.ts:29

Last WalletVerification stored on the provider, or null.