Polygon is the leading blockchain for NFTs, gaming, and enterprise adoption — home to projects from Starbucks, Reddit, Nike, and thousands of gaming studios. Run an AI agent to query MATIC balances, track gaming token holdings, and verify NFT ownership across Polygon wallets without writing a line of code.
Create a folder called polygon-agent/ and add these two files:
---
name: polygon-agent
description: Check Polygon 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 MATIC balance for the configured wallet address.
Report the address and balance in MATIC. Nothing else.
agent.yaml
name: Polygon Agent
description: Check Polygon wallet balance
connectors:
- connection_name: Polygon
connection_type: web3
skills:
- path: ./
trigger_type: auto
polygon-bor.publicnode.com provides a free Polygon PoS RPC — no rate-limit signup required:
{
"llm": {
"provider": "openai",
"model": "gpt-4o",
"apiKey": "sk-..."
},
"server": {
"enabled": false,
"port": 3333,
"apiKey": "your-secret-api-key"
},
"connectors": [
{
"connection_name": "Polygon",
"connection_type": "web3",
"baseUrl": "https://polygon-bor.publicnode.com",
"walletAddress": "0xYOUR_WALLET_ADDRESS"
}
]
}
🎮 Polygon hosts more NFT transactions than any other chain. Whether you're tracking in-game asset wallets or enterprise loyalty token balances, the same agent config works for all MATIC and ERC-20 queries.
From the parent folder containing your skill directory:
| Method | Best for | Download | |
|---|---|---|---|
| 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 |
npx -y @openenthrium/oe-runtime@latest ./polygon-agent
oe-runtime-win.exe ./polygon-agent
chmod +x oe-runtime-macos
./oe-runtime-macos ./polygon-agent
First run blocked? System Settings → Privacy & Security → Allow Anyway.
chmod +x oe-runtime-linux
./oe-runtime-linux ./polygon-agent
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": {}}'