Web3Wallet
verification
The Web3Wallet
object has methods that allow you to verify a user's web3 wallet.
prepareVerification()
Kick off the verification process for this web3 wallet. The user will be prompted to sign a generated nonce by the browser extension e.g MetaMask.
function prepareVerification(params: PrepareWeb3WalletVerificationParams): Promise<Web3Wallet>;
PrepareWeb3WalletVerificationParams
Name | Type | Description |
---|---|---|
strategy | 'web3_metamask_signature' | The verification strategy. Possible strategy values are:
|
prepareVerification()
returns
Type | Description |
---|---|
Promise<User> | A Promise which resolves with the current Web3Wallet object. |
attemptVerification()
Attempts to verify this web3 wallet, by passing the generated signature.
function attemptVerification(params: AttemptWeb3WalletVerificationParams): Promise<Web3Wallet>;
AttemptWeb3WalletVerificationParams
Name | Type | Description |
---|---|---|
signature | string | The signature that was generated after prepareVerification was called. |
attemptVerification()
returns
Type | Description |
---|---|
Promise<User> | A Promise which resolves with the current Web3Wallet object. |
Last updated on February 21, 2024