Signs an arbitrary message with the connected wallet; the SDK owns the encoding. Wagmi: useSignMessage, same name and job.
useSignMessage
with no CantonConnectProvider above it, and from signMessage where nothing is connected or the wallet rejects, the rejection also landing in error.
signMessage
error
const { signMessage } = useSignMessage()const signed = await signMessage('Approve vesting claim') Copy
const { signMessage } = useSignMessage()const signed = await signMessage('Approve vesting claim')
Signs an arbitrary message with the connected wallet; the SDK owns the encoding. Wagmi:
useSignMessage, same name and job.