Skip to content

Commit

Permalink
docs: update example for optional walletId
Browse files Browse the repository at this point in the history
  • Loading branch information
azf20 committed Feb 12, 2025
1 parent 8441ba9 commit 61d7a46
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions typescript/examples/langchain-privy-chatbot/.env-local
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ OPENAI_API_KEY=
# Privy Configuration - get these from your Privy dashboard
PRIVY_APP_ID=
PRIVY_APP_SECRET=

# Optional Wallet ID, otherwise a new wallet will be greated
PRIVY_WALLET_ID=

# Optional Authorization Key, if you are using them for your server wallets
Expand Down
2 changes: 1 addition & 1 deletion typescript/examples/langchain-privy-chatbot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ npm install
- Ensure the following ENV Vars from your Privy dashboard are set in `.env`:
- PRIVY_APP_ID=
- PRIVY_APP_SECRET=
- PRIVY_WALLET_ID=
- PRIVY_WALLET_ID=[optional, otherwise a new wallet will be created]
- PRIVY_WALLET_AUTHORIZATION_KEY=[optional, only if you are using authorization keys for your server wallets]

```bash
Expand Down
2 changes: 1 addition & 1 deletion typescript/examples/langchain-privy-chatbot/chatbot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function validateEnvironment(): void {
const missingVars: string[] = [];

// Check required variables
const requiredVars = ["OPENAI_API_KEY", "PRIVY_APP_ID", "PRIVY_APP_SECRET", "PRIVY_WALLET_ID"];
const requiredVars = ["OPENAI_API_KEY", "PRIVY_APP_ID", "PRIVY_APP_SECRET"];
requiredVars.forEach(varName => {
if (!process.env[varName]) {
missingVars.push(varName);
Expand Down

0 comments on commit 61d7a46

Please sign in to comment.