Appearance
@swapped/connect-sdk / wallet-verification-react / UseVerifyWalletResult
Type Alias: UseVerifyWalletResult
UseVerifyWalletResult =
object
Defined in: src/react/wallet-verification/hooks/useVerifyWallet.ts:46
Result of useVerifyWallet.
Properties
cancel
cancel: () =>
void
Defined in: src/react/wallet-verification/hooks/useVerifyWallet.ts:57
Stop pairing or a deeplink wait (WALLET_VERIFICATION_CANCELLED).
Returns
void
deeplinkUrl
deeplinkUrl:
string|null
Defined in: src/react/wallet-verification/hooks/useVerifyWallet.ts:69
Browse URL - camera QR on desktop; the SDK opens the wallet on mobile.
error
error:
Error|null
Defined in: src/react/wallet-verification/hooks/useVerifyWallet.ts:63
Error from the last failed prepare() / verify(), or null.
isVerifying
isVerifying:
boolean
Defined in: src/react/wallet-verification/hooks/useVerifyWallet.ts:59
true from prepare() / verify() until that run finishes or cancel().
pairingDeeplinkUrl
pairingDeeplinkUrl:
string|null
Defined in: src/react/wallet-verification/hooks/useVerifyWallet.ts:67
HTTPS link that opens the wallet app on this device.
pairingUri
pairingUri:
string|null
Defined in: src/react/wallet-verification/hooks/useVerifyWallet.ts:65
WalletConnect wc: URI - render as the QR the wallet app scans.
prepare
prepare: (
request) =>Promise<PreparedWalletVerification>
Defined in: src/react/wallet-verification/hooks/useVerifyWallet.ts:48
QR-first start. address required. Resolves when the QR is ready.
Parameters
request
Returns
Promise<PreparedWalletVerification>
prepared
prepared:
PreparedWalletVerification|null
Defined in: src/react/wallet-verification/hooks/useVerifyWallet.ts:71
Live prepare() session, or null.
verification
verification:
WalletVerification|null
Defined in: src/react/wallet-verification/hooks/useVerifyWallet.ts:61
Last WalletVerification from a successful run, or null.
verify
verify: (
request) =>Promise<WalletVerification>
Defined in: src/react/wallet-verification/hooks/useVerifyWallet.ts:55
Connect, sign, and wait until the record is terminal. verify({ transport: 'injected' }) finishes a live prepare() with the extension.
Parameters
request
Returns
Promise<WalletVerification>