Skip to content

Commit

Permalink
Make RPC transport generic (goat-sdk#15)
Browse files Browse the repository at this point in the history
Made RPC transport generic
  • Loading branch information
muttoni authored Dec 8, 2024
1 parent 10088cd commit f32d00a
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion typescript/examples/langchain/viem/.env.template
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
OPENAI_API_KEY=
WALLET_PRIVATE_KEY=
ALCHEMY_API_KEY=
RPC_PROVIDER_URL=
2 changes: 1 addition & 1 deletion typescript/examples/langchain/viem/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});

Expand Down
2 changes: 1 addition & 1 deletion typescript/examples/vercel-ai/coingecko/.env.template
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
OPENAI_API_KEY=
WALLET_PRIVATE_KEY=
ALCHEMY_API_KEY=
RPC_PROVIDER_URL=
COINGECKO_API_KEY=
2 changes: 1 addition & 1 deletion typescript/examples/vercel-ai/coingecko/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});

Expand Down
2 changes: 1 addition & 1 deletion typescript/examples/vercel-ai/polymarket/.env.template
Original file line number Diff line number Diff line change
@@ -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=
Expand Down
2 changes: 1 addition & 1 deletion typescript/examples/vercel-ai/polymarket/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});

Expand Down
2 changes: 1 addition & 1 deletion typescript/examples/vercel-ai/viem/.env.template
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
OPENAI_API_KEY=
WALLET_PRIVATE_KEY=
ALCHEMY_API_KEY=
RPC_PROVIDER_URL=
2 changes: 1 addition & 1 deletion typescript/examples/vercel-ai/viem/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});

Expand Down

0 comments on commit f32d00a

Please sign in to comment.