Skip to Content
You are viewing a beta version of Clerk Docs
Visit the latest docs
Clerk logo

Clerk Docs

Ctrl + K
Go to clerk.com

Web3 verification

These are all methods on the SignUp class that allow you to verify a user's sign-up request via a web3 wallet.

prepareWeb3WalletVerification()

Helper method that allows you to initiate a verification process for a web3 wallet public address. It sends the public address to the server and expects a nonce that will need to be signed.

This is equivalent to calling SignUp.prepareVerification("web3_metamask_signature").

function prepareWeb3WalletVerification(): Promise<SignUpResource>;

prepareWeb3WalletVerification() returns

TypeDescription
Promise<SignUpResource>A Promise which resolves to the current SignUp.

attemptWeb3WalletVerification()

Helper method that attempts to complete the verification process for a web3 wallet public address.

function attemptWeb3WalletVerification(params: AttemptWeb3WalletVerificationParams): Promise<SignUp>;

This is equivalent to calling SignUp.attemptVerification({strategy: "web3_metamask_signature", signature: "..." }).

AttemptWeb3WalletVerificationParams

NameTypeDescription
signaturestringThe signature that was generated after prepareVerification was called.

attemptWeb3WalletVerification() returns

TypeDescription
Promise<SignUpResource>A Promise which resolves to the current SignUp.

Last updated on October 5, 2023

What did you think of this content?

Clerk © 2024