This example demonstrates how to use GOAT to allow an AG2 agent to send and receive ETH and ERC-20 tokens on EVM networks. This example can be implemented with any other EVM network by changing the chain and RPC URL.
You can use this example with any other agent framework, chain, and wallet of your choice.
- Clone the repository:
git clone https://github.com/goat-sdk/goat.git- Go to the example directory:
cd python/examples/by-framework/ag2- Copy the
.env.templateand populate with your values:
cp .env.template .envOPENAI_API_KEYWALLET_PRIVATE_KEYRPC_PROVIDER_URL
- Install dependencies:
poetry install- Run the example script:
poetry run python example.py- The example script demonstrates (non-interactive):
- Checking ERC-20 token balances
- Registered AG2 tools for interacting with ETH and ERC-20 tokens
- Interaction between a crypto agent and an executor agent
The script runs with a predefined query to check the balance of a specific token.
Crossmint offers one of the most advanced solutions for agent developers and launchpads: Agent Wallets.
To integrate Agent Wallets with GOAT, check out the following quickstarts:
- Agent Wallets Quickstart [EVM, Solana]
- Agent Launchpad Starter Kit

