diff --git a/agent/src/index.ts b/agent/src/index.ts index db7f9889ea..4217b97a7d 100644 --- a/agent/src/index.ts +++ b/agent/src/index.ts @@ -491,7 +491,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) ); @@ -565,7 +565,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 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.