Skip to content

Commit d4c5419

Browse files
authored
Merge pull request elizaOS#1180 from aeither/update-env-plugin-goat
chore: update env for plugin-goat
2 parents 8b23c3a + 6878314 commit d4c5419

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

agent/src/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ export async function createAgent(
490490
}
491491

492492
let goatPlugin: any | undefined;
493-
if (getSecret(character, "ALCHEMY_API_KEY")) {
493+
if (getSecret(character, "EVM_PROVIDER_URL")) {
494494
goatPlugin = await createGoatPlugin((secret) =>
495495
getSecret(character, secret)
496496
);
@@ -561,7 +561,7 @@ export async function createAgent(
561561
getSecret(character, "COINBASE_NOTIFICATION_URI")
562562
? webhookPlugin
563563
: null,
564-
getSecret(character, "ALCHEMY_API_KEY") ? goatPlugin : null,
564+
getSecret(character, "EVM_PROVIDER_URL") ? goatPlugin : null,
565565
getSecret(character, "FLOW_ADDRESS") &&
566566
getSecret(character, "FLOW_PRIVATE_KEY")
567567
? flowPlugin

packages/plugin-goat/README.md

+7
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@ const tools = getOnChainActions({
3333
})
3434
```
3535

36+
## Environment Variables Setup
37+
38+
To set up your environment variables, you will need to provide the following information:
39+
40+
* `EVM_PRIVATE_KEY`: Your EVM wallet private key.
41+
* `EVM_PROVIDER_URL`: Your RPC provider URL (e.g. Infura, Alchemy, etc.).
42+
3643
## Wallets
3744
GOAT supports many different wallets from key pairs to [Crossmint Smart Wallets](https://docs.crossmint.com/wallets/smart-wallets/overview) and Coinbase.
3845

0 commit comments

Comments
 (0)