Signs an arbitrary message with the connected wallet; the SDK owns the encoding.
with no CantonConnectProvider above it, and from signMessage where nothing is connected or no party is reported. A wallet refusal throws too, and lands 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.