Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

README.md

GOAT

Langchain

🚀 Quickstart

This example demonstrates how to use GOAT to allow a Langchain 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.

Setup

  1. Clone the repository:
git clone https://github.com/goat-sdk/goat.git
  1. Go to the example directory:
cd python/examples/by-framework/langchain
  1. Copy the .env.template and populate with your values:
cp .env.template .env
  • OPENAI_API_KEY
  • WALLET_PRIVATE_KEY
  • RPC_PROVIDER_URL
  1. Install dependencies:
poetry install

Usage

  1. Run the interactive CLI:
poetry run python example.py
  1. Chat with the agent:
  • Check your balance for ERC-20 tokens
  • Send ERC-20 tokens to another address
  • Check your balance again to see the tokens you just sent

Agent Wallets

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:

  1. Agent Wallets Quickstart [EVM, Solana]
  2. Agent Launchpad Starter Kit


GOAT