+
Review Transaction
+
+ {JSON.stringify(transaction, null, 2)}
+
+ {error &&
{error}
}
+
+
+ );
+}
+```
+
+```tsx components/sign-message.tsx [expandable]
+"use client";
+
+import { useState } from "react";
+import type { Address } from "viem";
+import { signMessage } from "@/lib/turnkey";
+
+interface Props {
+ method: "personal_sign" | "eth_sign";
+ message: string;
+ signWith: Address;
+ organizationId: string;
+}
+
+export function SignMessage({
+ method,
+ message,
+ signWith,
+ organizationId,
+}: Props) {
+ const [submitting, setSubmitting] = useState(false);
+ const [error, setError] = useState