> ## 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

> End-to-end snippets for popular stacks

Skip the wiring and drop these examples into your project:

<CardGroup cols={2}>
  <Card title="Viem Deposit" href="/v0.1.0/intro/products/earn/developers/examples/viem-deposit">
    Command-line TypeScript script that prepares approvals and deposits using
    viem clients.
  </Card>

  <Card title="Viem Withdraw" href="/v0.1.0/intro/products/earn/developers/examples/viem-withdraw">
    Redeem vault shares with viem, complete with confirmation polling and error
    surfacing.
  </Card>

  <Card title="wagmi Deposit" href="/v0.1.0/intro/products/earn/developers/examples/wagmi-deposit">
    React hooks and components that handle approval checks, transactions, and UI
    state with wagmi.
  </Card>

  <Card title="wagmi Withdraw" href="/v0.1.0/intro/products/earn/developers/examples/wagmi-withdraw">
    Hooks for immediate redemptions inside React, using wagmi's contract writers
    and receipt tracking.
  </Card>

  <Card title="Privy Deposit" href="/v0.1.0/intro/products/earn/developers/examples/privy-deposit">
    Hook + component for running the deposit flow with Privy's embedded or
    external wallets.
  </Card>

  <Card title="Privy Withdraw" href="/v0.1.0/intro/products/earn/developers/examples/privy-withdraw">
    Execute withdrawals through Privy, including optimistic status and error
    handling.
  </Card>
</CardGroup>

Each example pairs the helpers from [Functions](../functions/index) with real wallet clients, caching, and error handling. Adjust addresses, chains, and YieldType values to match your production configuration.\*\*\*
