Skip to Content
Clerk logo

Clerk Docs

Ctrl + K
Go to clerkstage.dev

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()

function prepareWeb3WalletVerification(): Promise<SignUp>;

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").

attemptWeb3WalletVerification()

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

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

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

AttemptWeb3WalletVerificationParams

NameTypeDescription
identifierstringThe user's Web3 ID

What did you think of this content?

Clerk © 2023