Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Sign a plain string with the user’s smart account.
import { stringToHex } from 'viem' const signature = await provider.request<`0x${string}`>({ method: 'personal_sign', params: [stringToHex('I acknowledge the terms.'), address], })
0x${string}
4001
4100
import { publicClient } from './viem' const isValid = await publicClient.verifyMessage({ address, message: 'I acknowledge the terms.', signature, })
eth_signTypedData_v4