> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getpara.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Sign Typed Data (EIP-712)

> Sign structured data using the EIP-712 standard for improved security and UX on React Native

Sign structured data according to the EIP-712 standard, which provides a more readable and secure signing experience for users.

<Card title="Setup EVM Libraries First" description="Install and configure Ethers.js or Viem before using EVM operations" href="/v3/react-native/guides/web3-operations/evm/setup-libraries" horizontal />

<Note>
  Wagmi is not available on React Native. Use Ethers.js or Viem for EVM operations.
</Note>

## Sign Typed Data

<Tabs>
  <Tab title="Ethers.js">
    ```tsx theme={null}
    import { useParaEthersSigner, useParaEthersSignTypedData } from "@getpara/react-native-wallet/evm/ethers";
    import { JsonRpcProvider } from "ethers";
    import { View, Text, TouchableOpacity } from "react-native";

    const provider = new JsonRpcProvider("https://ethereum-sepolia-rpc.publicnode.com");

    function SignTypedData({
      domain,
      types,
      value,
    }: {
      domain: any;
      types: any;
      value: any;
    }) {
      const { ethersSigner } = useParaEthersSigner({ provider });

      const { signTypedDataAsync, isPending, data: signature } = useParaEthersSignTypedData(ethersSigner);

      return (
        <View>
          <TouchableOpacity
            disabled={isPending}
            onPress={() => signTypedDataAsync({ domain, types, value })}
          >
            <Text>{isPending ? "Signing..." : "Sign Typed Data"}</Text>
          </TouchableOpacity>
          {signature && <Text>Signature: {signature}</Text>}
        </View>
      );
    }
    ```
  </Tab>

  <Tab title="Viem">
    ```tsx theme={null}
    import { useParaViemClient, useParaViemSignTypedData } from "@getpara/react-native-wallet/evm/viem";
    import { http } from "viem";
    import { sepolia } from "viem/chains";
    import { View, Text, TouchableOpacity } from "react-native";

    function SignTypedData({
      domain,
      types,
      primaryType,
      message,
    }: {
      domain: any;
      types: any;
      primaryType: string;
      message: any;
    }) {
      const { viemClient } = useParaViemClient({
        walletClientConfig: { chain: sepolia, transport: http() },
      });

      const { signTypedDataAsync, isPending, data: signature } = useParaViemSignTypedData(viemClient);

      return (
        <View>
          <TouchableOpacity
            disabled={isPending}
            onPress={() => signTypedDataAsync({ domain, types, primaryType, message })}
          >
            <Text>{isPending ? "Signing..." : "Sign Typed Data"}</Text>
          </TouchableOpacity>
          {signature && <Text>Signature: {signature}</Text>}
        </View>
      );
    }
    ```
  </Tab>
</Tabs>

## Next Steps

<CardGroup cols={3}>
  <Card title="Verify Signatures" description="Verify signatures and recover addresses" href="/v3/react-native/guides/web3-operations/evm/verify-signatures" icon="shield-check" />

  <Card title="Sign Messages" description="Sign plain text messages for authentication" href="/v3/react-native/guides/web3-operations/evm/sign-messages" icon="signature" />

  <Card title="Execute Transactions" description="Execute arbitrary transactions" href="/v3/react-native/guides/web3-operations/evm/execute-transactions" icon="bolt" />
</CardGroup>
