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

# Sign a transaction on Ethereum/EVM

> Sign an EVM transaction without broadcasting it to the network.

> [card] Recommended: JavaScript SDK for React Native
>
> While this SDK is still supported, we recommend using newer [JavaScript SDK](https://docs.dynamic.xyz/docs/javascript/reference/react-native-quickstart.md), which is optimized for React Native, but also comes with a host of other benefits.

Use `signTransaction` to sign a transaction without sending it. This is useful when you need to prepare a signed transaction for later submission or for use with external services.

```ts React Native theme={"system"}
import { dynamicClient } from './dynamicClient'; // extended with ViemExtension
import { parseEther } from 'viem'

const wallet = dynamicClient.wallets.primary;
const walletClient = dynamicClient.viem.createWalletClient({ wallet });

const signedTransaction = await walletClient.signTransaction({
  to: "0x...",
  value: parseEther("0.05"),
});
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.