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.
- Name
strategy
- Type
'web3_metamask_signature'
- Description
The verification strategy. Possible strategy values are:
web3_metamask_signature
: User will need to sign a message and generate a signature using MetaMask browser extension.web3_coinbase_wallet_signature
: User will need to sign a message and generate a signature using Coinbase Wallet.
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.
- Name
signature
- Type
string
- Description
The signature that was generated after
prepareVerification
was called.
attemptVerification()
returns
Type | Description |
---|---|
Promise<User> | A Promise which resolves with the current Web3Wallet object. |
Feedback
Last updated on