Skip to content

docs: Privy wallet integration details in contracts SDK documentation#9

Merged
devmahmud merged 2 commits intomainfrom
docs/working-with-privy
Apr 2, 2026
Merged

docs: Privy wallet integration details in contracts SDK documentation#9
devmahmud merged 2 commits intomainfrom
docs/working-with-privy

Conversation

@devmahmud
Copy link
Copy Markdown
Contributor

Summary

  • Add Privy embedded wallet integration examples to the contracts SDK documentation
  • Show how to connect @privy-io/react-auth wallets to createOakContractsClient using viem's custom() transport

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment Apr 2, 2026 4:42pm

Request Review

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5804413bb8

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

} from '@oaknetwork/contracts';
import { useWallets } from '@privy-io/react-auth';

const { wallets } = useWallets();
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Wrap useWallets call in a React component

This example calls useWallets() at module scope, but React hooks are only valid inside a function component or another custom hook. In the quickstart context, users are likely to paste this into a plain script/module and hit an "Invalid hook call" runtime error before the SDK client is created. Please show this inside a React component (or use a non-hook Privy API) so the snippet is runnable as written.

Useful? React with 👍 / 👎.

…k/contracts-sdk' across multiple documentation files
@devmahmud devmahmud merged commit 3ab4a31 into main Apr 2, 2026
3 checks passed
@devmahmud devmahmud deleted the docs/working-with-privy branch April 2, 2026 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant