diff --git a/typescript/examples/langchain/viem/.env.template b/typescript/examples/langchain/viem/.env.template index ee55c710f..1b706a52b 100644 --- a/typescript/examples/langchain/viem/.env.template +++ b/typescript/examples/langchain/viem/.env.template @@ -1,3 +1,3 @@ OPENAI_API_KEY= WALLET_PRIVATE_KEY= -ALCHEMY_API_KEY= +RPC_PROVIDER_URL= diff --git a/typescript/examples/langchain/viem/index.ts b/typescript/examples/langchain/viem/index.ts index 6c556a496..99044816f 100644 --- a/typescript/examples/langchain/viem/index.ts +++ b/typescript/examples/langchain/viem/index.ts @@ -20,7 +20,7 @@ const account = privateKeyToAccount(process.env.WALLET_PRIVATE_KEY as `0x${strin const walletClient = createWalletClient({ account: account, - transport: http(process.env.ALCHEMY_API_KEY), + transport: http(process.env.RPC_PROVIDER_URL), chain: sepolia, }); diff --git a/typescript/examples/vercel-ai/coingecko/.env.template b/typescript/examples/vercel-ai/coingecko/.env.template index 089112b65..03da013c7 100644 --- a/typescript/examples/vercel-ai/coingecko/.env.template +++ b/typescript/examples/vercel-ai/coingecko/.env.template @@ -1,4 +1,4 @@ OPENAI_API_KEY= WALLET_PRIVATE_KEY= -ALCHEMY_API_KEY= +RPC_PROVIDER_URL= COINGECKO_API_KEY= \ No newline at end of file diff --git a/typescript/examples/vercel-ai/coingecko/index.ts b/typescript/examples/vercel-ai/coingecko/index.ts index 7b198ee72..0a524e4e7 100644 --- a/typescript/examples/vercel-ai/coingecko/index.ts +++ b/typescript/examples/vercel-ai/coingecko/index.ts @@ -21,7 +21,7 @@ const account = privateKeyToAccount( const walletClient = createWalletClient({ account: account, - transport: http(process.env.ALCHEMY_API_KEY), + transport: http(process.env.RPC_PROVIDER_URL), chain: sepolia, }); diff --git a/typescript/examples/vercel-ai/polymarket/.env.template b/typescript/examples/vercel-ai/polymarket/.env.template index 66f8b44c2..526f6090b 100644 --- a/typescript/examples/vercel-ai/polymarket/.env.template +++ b/typescript/examples/vercel-ai/polymarket/.env.template @@ -1,6 +1,6 @@ OPENAI_API_KEY= WALLET_PRIVATE_KEY= -ALCHEMY_API_KEY= +RPC_PROVIDER_URL= # Polymarket (get an API key by running the `pnpm create-api-key` command) POLYMARKET_API_KEY= diff --git a/typescript/examples/vercel-ai/polymarket/index.ts b/typescript/examples/vercel-ai/polymarket/index.ts index 9b59dac26..2b03430cc 100644 --- a/typescript/examples/vercel-ai/polymarket/index.ts +++ b/typescript/examples/vercel-ai/polymarket/index.ts @@ -16,7 +16,7 @@ const account = privateKeyToAccount(process.env.WALLET_PRIVATE_KEY as `0x${strin const walletClient = createWalletClient({ account: account, - transport: http(process.env.ALCHEMY_API_KEY), + transport: http(process.env.RPC_PROVIDER_URL), chain: polygon, }); diff --git a/typescript/examples/vercel-ai/viem/.env.template b/typescript/examples/vercel-ai/viem/.env.template index 4d188159c..4ea3f61dd 100644 --- a/typescript/examples/vercel-ai/viem/.env.template +++ b/typescript/examples/vercel-ai/viem/.env.template @@ -1,3 +1,3 @@ OPENAI_API_KEY= WALLET_PRIVATE_KEY= -ALCHEMY_API_KEY= \ No newline at end of file +RPC_PROVIDER_URL= \ No newline at end of file diff --git a/typescript/examples/vercel-ai/viem/index.ts b/typescript/examples/vercel-ai/viem/index.ts index 7a6497c4a..96c9237ce 100644 --- a/typescript/examples/vercel-ai/viem/index.ts +++ b/typescript/examples/vercel-ai/viem/index.ts @@ -18,7 +18,7 @@ const account = privateKeyToAccount(process.env.WALLET_PRIVATE_KEY as `0x${strin const walletClient = createWalletClient({ account: account, - transport: http(process.env.ALCHEMY_API_KEY), + transport: http(process.env.RPC_PROVIDER_URL), chain: sepolia, });