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

# Examples

> Complete integration examples for Privy, wagmi, and viem

Copy-pasteable integration examples for the most common wallet libraries. All examples use the unified deposit API and include proper error handling.

## Deposit Examples

<CardGroup cols={3}>
  <Card title="Privy Deposit" icon="wallet" href="/v0.2.4/intro/products/earn/developers/examples/privy-deposit">
    Complete deposit flow using Privy embedded wallets with unified API.
  </Card>

  <Card title="Wagmi Deposit" icon="react" href="/v0.2.4/intro/products/earn/developers/examples/wagmi-deposit">
    React hooks-based deposit with wagmi and unified API.
  </Card>

  <Card title="Viem Deposit" icon="code" href="/v0.2.4/intro/products/earn/developers/examples/viem-deposit">
    Pure TypeScript deposit using viem wallet client.
  </Card>
</CardGroup>

## Withdraw Examples

<CardGroup cols={3}>
  <Card title="Privy Withdraw" icon="wallet" href="/v0.2.4/intro/products/earn/developers/examples/privy-withdraw">
    Withdraw vault shares using Privy embedded wallets.
  </Card>

  <Card title="Wagmi Withdraw" icon="react" href="/v0.2.4/intro/products/earn/developers/examples/wagmi-withdraw">
    React hooks-based withdrawal with wagmi.
  </Card>

  <Card title="Viem Withdraw" icon="code" href="/v0.2.4/intro/products/earn/developers/examples/viem-withdraw">
    Pure TypeScript withdrawal using viem wallet client.
  </Card>
</CardGroup>

## Before You Start

All examples require:

1. **SDK Initialization** - Call `initAmplifySDK()` with your API key
2. **Wallet Connection** - User must have a connected wallet
3. **Token Balance** - User must have sufficient token balance for deposits

See [SDK Initialization](../sdk-initialization) for setup instructions.
