Connect wallet and request account access
eth_requestAccounts
but provides additional connection features.Code | Message | Description |
---|---|---|
4001 | User rejected the request | User denied the connection request |
4100 | Requested method not supported | The method is not supported by the wallet |
4200 | Wallet not available | The wallet is not installed or available |
-32602 | Invalid params | Invalid nonce or chainId in signInWithEthereum capability |
signInWithEthereum
capability, always generate a fresh, unique nonce for each authentication attempt to prevent replay attacks. The signature can be verified on your backend using libraries like viem.wallet_connect
with the signInWithEthereum
capability to authenticate the user.