From 50fcb68f030a6e2ca3abca1de56fe7d43b97c9ac Mon Sep 17 00:00:00 2001 From: aeither <36173828+aeither@users.noreply.github.com> Date: Tue, 17 Dec 2024 15:52:16 +0100 Subject: [PATCH 1/2] update env for plugin-goat --- agent/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/agent/src/index.ts b/agent/src/index.ts index 4e24b62c23..b18f588db7 100644 --- a/agent/src/index.ts +++ b/agent/src/index.ts @@ -467,7 +467,7 @@ export async function createAgent( } let goatPlugin: any | undefined; - if (getSecret(character, "ALCHEMY_API_KEY")) { + if (getSecret(character, "EVM_PROVIDER_URL")) { goatPlugin = await createGoatPlugin((secret) => getSecret(character, secret) ); @@ -538,7 +538,7 @@ export async function createAgent( getSecret(character, "COINBASE_NOTIFICATION_URI") ? webhookPlugin : null, - getSecret(character, "ALCHEMY_API_KEY") ? goatPlugin : null, + getSecret(character, "EVM_PROVIDER_URL") ? goatPlugin : null, getSecret(character, "FLOW_ADDRESS") && getSecret(character, "FLOW_PRIVATE_KEY") ? flowPlugin From df9f57f2f44c395e73e586b5c7d25ec09b67b46b Mon Sep 17 00:00:00 2001 From: aeither <36173828+aeither@users.noreply.github.com> Date: Wed, 18 Dec 2024 00:43:34 +0100 Subject: [PATCH 2/2] add docs --- packages/plugin-goat/README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/plugin-goat/README.md b/packages/plugin-goat/README.md index 4baa1bd150..6dca2160d5 100644 --- a/packages/plugin-goat/README.md +++ b/packages/plugin-goat/README.md @@ -33,6 +33,13 @@ const tools = getOnChainActions({ }) ``` +## Environment Variables Setup + +To set up your environment variables, you will need to provide the following information: + +* `EVM_PRIVATE_KEY`: Your EVM wallet private key. +* `EVM_PROVIDER_URL`: Your RPC provider URL (e.g. Infura, Alchemy, etc.). + ## Wallets GOAT supports many different wallets from key pairs to [Crossmint Smart Wallets](https://docs.crossmint.com/wallets/smart-wallets/overview) and Coinbase.