← Back to Blog

How to Check Ethereum Wallet Balance with an AI Agent

Ethereum holds more value than any other blockchain. Query wallet balances, audit DeFi positions, and surface on-chain intelligence from any Ethereum address — using plain English, two config files, and one command. No cloud platform required.

Ⓜ
Step 1
Create the Project Folder
Two files — agent.yaml and oe-config.json — inside ethereum-agent/.
Step 2
Set Your Wallet Address
Add your Ethereum wallet address to oe-config.json. No API key needed for the RPC.
Step 3
Run the Agent
One npx command — the agent fetches the balance and reports back.

What You Need


Create the Project Folder

Create a folder called ethereum-agent/ and add these two files:

ethereum-agent/
├── SKILL.md         # the portable skill (agentskills.io)
├── agent.yaml       # wires SKILL.md to your connector
└── oe-config.json  # LLM key + Ethereum RPC endpoint + wallet address

The Skill Files

SKILL.md
---
name: ethereum-agent
description: Check Ethereum wallet balance
license: Apache-2.0
metadata:
  author: Open Enthrium
  version: "1.0"
---

You are a blockchain data agent. Use the tools to fetch data and respond concisely.

## Step 1: Check Balance
Get the ETH balance for the configured wallet address.
Report the address and balance in ETH. Nothing else.
agent.yaml
name: Ethereum Agent
description: Check Ethereum wallet balance
connectors:
  - connection_name: Ethereum
    connection_type: web3
skills:
  - path: ./
    trigger_type: auto

The Config File

Create oe-config.json in the same folder. ethereum.publicnode.com is a free, no-API-key Ethereum RPC endpoint:

{
  "llm": {
    "provider": "openai",
    "model": "gpt-4o",
    "apiKey": "sk-..."
  },
  "server": {
    "enabled": false,
    "port": 3333,
    "apiKey": "your-secret-api-key"
  },
  "connectors": [
    {
      "connection_name": "Ethereum",
      "connection_type": "web3",
      "baseUrl": "https://ethereum.publicnode.com",
      "walletAddress": "0xYOUR_WALLET_ADDRESS"
    }
  ]
}

🔑 Ethereum blockchain data is public. The RPC endpoint requires no API key — paste your wallet address and run.

Download OE Runtime

OE Runtime — Direct Downloads

Run the Agent

From the parent folder containing your skill directory:

MethodBest forDownload
1 npx recommended No install needed — always runs the latest version —
2 Windows .exe Download once, run offline on Windows ⊞ Windows (.exe)
3 macOS binary Download once, run offline on Mac  macOS
4 Linux binary Server deployments, cron jobs, Docker 🐧 Linux
5 API Server integration Call from any app, webhook, or automation pipeline 📮 Postman Collection

1 npx recommended

npx -y @openenthrium/oe-runtime@latest ./ethereum-agent

2 Windows

oe-runtime-win.exe ./ethereum-agent

3 macOS

chmod +x oe-runtime-macos
./oe-runtime-macos ./ethereum-agent

First run blocked? System Settings → Privacy & Security → Allow Anyway.

4 Linux

chmod +x oe-runtime-linux
./oe-runtime-linux ./ethereum-agent

5 API Server integration

Add a "server" block to oe-config.json, then start with --serve:

{
  "llm": { ... },
  "server": { "enabled": true, "port": 3333, "apiKey": "your-secret-key" },
  "connectors": [ ... ]
}
npx -y @openenthrium/oe-runtime@latest --serve --config oe-config.json

Run with inline YAML:

curl -X POST http://localhost:3333/run \
  -H "Content-Type: application/json" \
  -H "X-API-Key: your-secret-key" \
  -d '{"yaml": "...", "params": {}}'

Or run from a file on the server:

curl -X POST http://localhost:3333/run-file \
  -H "Content-Type: application/json" \
  -H "X-API-Key: your-secret-key" \
  -d '{"file": "/path/to/agent.yaml", "params": {}}'

What You Get Back

The agent calls the Ethereum RPC, converts the raw wei balance to ETH, and returns a plain-English response:

Address: 0xYOUR_WALLET_ADDRESS
Balance: 6.635339 ETH

Enterprise Use Cases