What are we building today?
A DeFi agent is essentially a chatbot with blockchain superpowers. When you type “send 0.1 ETH to alice.eth”, it understands your intent, connects to the blockchain, executes the transaction, and reports back all through a conversational interface. Think of it as having a smart assistant that speaks both human language and blockchain. By the end of this guide you’ll have a DeFi agent on Arbitrum that can:- Send ETH to any address on Arbitrum
- Send ERC-20 tokens (USDC, PEPE configured by default)
- Check wallet balances
- Respond to natural language commands
- Execute real blockchain transactions
The integrations that make this possible
- GOAT SDK (by Crossmint) - enables you to give your AI agent a wallet and 200+ tools to transact, trade, and invest on-chain.
- Vercel AI SDK - handles streaming conversations and tool calling with OpenAI’s GPT models
- Viem - modern, type-safe library for Ethereum and L2 interactions
- Next.js - powers the web interface and server-side API routes
Prerequisites
Before we begin, make sure you have:- Node.js 18 or higher installed
- An OpenAI API key from https://platform.openai.com/
- Cursor, Claude, or any AI IDE for the customization part later
- A test wallet (we’ll create one together)