signMessage
function.
See Checking Wallet Account Availability for more information.
Usage
Error Handling
If the wallet account you trying to sign the message with is not connected and active in the wallet app, the function will throw aWalletAccountNotSelectedError
error.
The error contains an expectedAddress
, which is the address that you are trying to sign the message with, and a selectedAddress
, which is the address that is currently active in the wallet app.
If there is no selectedAddress
prop, it probably means that there is no connected wallet accounts to your app.