LogoLogo
DocsGitHubDiscordOpenServ.ai
  • OpenServ Docs
  • Getting Started
    • Quickstart Guide
    • No Code Builder
    • Agent Starter SDK
    • OpenServ API
  • How to...
    • Create An Agent API Key
    • Deploy Your Agent To Production
  • Demos and Tutorials
    • Agents Examples
    • DexScreener
    • GOAT Wallet
    • Perplexity Sonar Pro Agent
    • API Python Agent
    • API TypeScript Agent
    • Multi AI Agents Demo
    • Connect Figma MCP to OpenServ
  • Resources
    • TypeScript SDK Framework Architecture
    • Contribution Guide
    • Code of Conduct
    • FAQ
Powered by GitBook
On this page
Edit on GitHub
Export as PDF
  1. Demos and Tutorials

GOAT Wallet

PreviousDexScreenerNextPerplexity Sonar Pro Agent

Last updated 4 months ago

Was this helpful?

LogoLogo

Product

  • OpenServ.ai
  • YouTube

Community

  • Discord
  • X

© 2025 OpenServ Labs Ltd. All Rights Reserved.

CtrlK
  • Features
  • Prerequisites
  • Running the Agent
  • Configuration
  • How to run the example:

Was this helpful?

This example demonstrates how to create an AI agent that can interact with blockchain using the OpenServ SDK. The agent is capable of performing various blockchain operations like checking balances, sending transactions, and interacting with tokens.

Example queries:

"How much ETH do I have in my wallet?"
"Send 0.1 ETH to the address 0x1234567890"

Features

  • Get account balances (ETH and tokens)

  • Send transactions

  • Interact with ERC20 tokens (including USDC and SERV tokens)

  • Automated blockchain operations through AI

Prerequisites

  • Node.js installed

  • An Ethereum wallet private key

  • RPC provider URL (e.g., Infura, Alchemy)

  • OpenAI API key

  • OpenServ API key

Running the Agent

Start the agent in development mode:

npm run dev

The agent will start and be ready to handle blockchain interactions through natural language commands based on the system prompt defined in system.md.

Configuration

  • The agent's behavior is defined in system.md

  • Token configurations, blockchain interactions and capabilities are set up in index.ts

  • The agent uses the Viem wallet client for Ethereum interactions

  • Supported tokens include USDC and SERV (OpenServ token)

How to run the example: Agents Examples

[ Go to repo ]