wallets
array and get its EIP-1193 provider via its getEthereumProvider
method:request
method, send a personal_sign
JSON-RPC to the wallet. In the params
array, include the message to sign as the first entry, and the wallet’s address as the second entry.Library | Method |
---|---|
Viem | Use the wallet client’s signMessage method. |
Ethers | Use the signer’s signMessage method. |
Wagmi | Use the useSignMessage hook. |