> ## Documentation Index
> Fetch the complete documentation index at: https://litprotocol-feat-rusk-sdk.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# PKP Viem Account

<Tip>
  See the [PKP Viem AccountReference Reference API](/sdk/sdk-reference/lit-client/functions/createLitClient#getpkpviemaccount) for more details on how to create a PKP Viem account.
</Tip>

### What it is

A drop‑in, Viem‑compatible `account` that behaves like an EOA account, but is backed by a PKP. It exposes `signMessage`, `signTransaction`, and `signTypedData` so existing Viem workflows continue to work unchanged, while signatures are produced by the Lit Network using your PKP.

### Examples

Creates a Viem account instance that can sign transactions using a PKP

```typescript theme={null}
const pkpAccount = await litClient.getPkpViemAccount({
  pkpPublicKey: '0x...',
  authContext: { ... },
  chainConfig: mainnet // from viem/chains
});

const txHash = await viemClient.sendTransaction({
  account: pkpAccount,
  to: '0x...',
  value: parseEther('0.1')
});
```
