prepareSign
Defined in: account-kit/wallet-client/src/client/actions/prepareSign.ts:40
Prepares a signature request for signing messages or transactions.
Example
Type Parameters
Parameters
Returns
Promise<{
chainId: `0x${string}`;
signatureRequest: | {
data: | string
| {
raw: `0x${string}`;
};
type: "personal_sign";
}
| {
data: {
domain?: {
chainId?: number;
name?: string;
salt?: `0x${string}`;
verifyingContract?: `0x${string}`;
version?: string;
};
message: Record<string, unknown>;
primaryType: string;
types: Record<string, object[]>;
};
type: "eth_signTypedData_v4";
};
}>
A Promise that resolves to the prepare sign result containing a signature request