Viem v2
LocalAccount.signTypedData
Signs EIP-712 typed data with a Para wallet.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Signs EIP-712 typed data with a Para wallet.
import type { Para as ParaServer } from '@getpara/server-sdk';
import { createParaViemAccount } from '@getpara/viem-v2-integration';
declare const para: ParaServer; // An authenticated Para Server client with a loaded EVM wallet.
const account = createParaViemAccount({ para });
const signature = await account.signTypedData({
domain: { name: 'Example', version: '1', chainId: 1 },
types: { Message: [{ name: 'contents', type: 'string' }] },
primaryType: 'Message',
message: { contents: 'Hello from Para' },
});