Agents
Topaz Agent
A live, agentic DeFi strategist purpose-built for the Topaz protocol on BNB Chain. It reasons about pools, positions, and voting strategies — then builds wallet-ready transactions. Non-custodial: the agent builds calldata, your wallet signs.
What it is
The Topaz Agent is a hosted service at agents.topazdex.com that combines multi-step AI reasoning with deep protocol knowledge to act as your DeFi strategist on Topaz DEX. Unlike the agent skill (a static package you install into your own agent), the Topaz Agent is a running service you interact with directly.
It is registered on-chain as Agent ID 113284 via the ERC-8004 on-chain agent registry and implements ERC-8183 for structured job handling.
How to use it
Web chat
Visit agents.topazdex.com and start a conversation in natural language. The agent supports multi-step tool calling — it will reason through your request, fetch live protocol data, and present its analysis with actionable recommendations.
Example prompts to try:
- ✓"Where should I LP $1,000 in stablecoins?"
- ✓"What's the best swap route for 10 BNB to USDT?"
- ✓"How should I vote with my veNFT this epoch?"
- ✓"Show me the top pools by APR right now"
- ✓"Build a bribe campaign for the WBNB/TOPAZ gauge"
- ✓"Claim all my pending rewards"
REST API
Every capability is accessible via standard HTTP endpoints. Use the OpenAPI spec for full request/response schemas.
# Get a swap quote
curl -X POST https://agents.topazdex.com/api/swap/quote \
-H "Content-Type: application/json" \
-d '{"tokenIn": "WBNB", "tokenOut": "USDT", "amount": "1"}'
# Get LP recommendations
curl -X POST https://agents.topazdex.com/api/lp/recommend \
-H "Content-Type: application/json" \
-d '{"risk": "medium", "budget": "1000"}'
# Chat via API
curl -X POST https://agents.topazdex.com/api/chat \
-H "Content-Type: application/json" \
-d '{"message": "What are the top gauges this epoch?"}'Capabilities
The agent exposes 15 registered capabilities grouped by workflow. Each capability can be accessed via chat, REST API, or MCP tools.
Swaps
| Parameter | Value | Description |
|---|---|---|
| swap.quote | /api/swap/quote | Best route across v2 + v3 pools with price impact and slippage estimates. |
| swap.build | /api/swap/build | Wallet-ready calldata for the quoted route. Returns unsigned transaction bytes. |
| route.alternatives | /api/swap/quote | Side-by-side v2 vs v3 route comparison with gas estimates. |
Liquidity
| Parameter | Value | Description |
|---|---|---|
| lp.recommend | /api/lp/recommend | Risk-scored position recommendations with TVL floors and APR cap guardrails. |
| lp.build | /api/lp/build | Build LP calldata — addLiquidity for v2, mint for v3 CL positions. |
Voting & veTOPAZ
| Parameter | Value | Description |
|---|---|---|
| vote.recommend | /api/vote/recommend | Gauge allocation optimization — max-yield, support-protocol, or balanced strategies. |
| vote.build | /api/vote/build | Build Voter.vote() calldata for your veNFT allocation. |
| vote.eligibility | /api/vote/eligibility | Check if a veNFT can vote this epoch (cooldown, already voted, etc.). |
Bribes & rewards
| Parameter | Value | Description |
|---|---|---|
| bribe.recommend | /api/bribe/recommend | Campaign planning with budget, duration, and projected APR impact. |
| bribe.build | /api/bribe/build | Build bribe deposit calldata for a target gauge. |
| rewards.build-claim | /api/rewards/build-claim | Claim emissions, trading fees, bribes, and rebase in a single transaction. |
Analytics & strategy
| Parameter | Value | Description |
|---|---|---|
| strategy.weekly_report | /api/strategy/weekly | Comprehensive epoch report — protocol state, top pools, opportunities. |
| pool.lookup | /api/pools/top | Find pools for a token pair, ranked by TVL, volume, fees, or APR. |
| pool.compare | /api/pools/top | Compare v2 vs v3 pool types for a given pair. |
Integration protocols
The Topaz Agent exposes four integration surfaces. Choose the one that matches your use case.
OpenAPI (REST)
Standard REST API with a full OpenAPI 3.0 spec. Works with any HTTP client, Postman, SDK generators, or automation platforms.
| Parameter | Value |
|---|---|
| Spec | https://agents.topazdex.com/openapi.json |
| Base URL | https://agents.topazdex.com |
| Auth | None (public read endpoints) |
MCP (Model Context Protocol)
27 tools exposed via JSON-RPC 2.0 following MCP protocol version 2024-11-05. Any MCP-compatible AI agent can connect directly and call tools programmatically.
| Parameter | Value |
|---|---|
| Endpoint | https://agents.topazdex.com/mcp |
| Protocol | JSON-RPC 2.0 (MCP 2024-11-05) |
| Tools | 27 |
{
"mcpServers": {
"topaz-agent": {
"url": "https://agents.topazdex.com/mcp"
}
}
}Agent-to-Agent (A2A)
Discovery card for autonomous agent-to-agent communication following the A2A protocol. Other agents can discover the Topaz Agent's capabilities and delegate tasks to it.
| Parameter | Value |
|---|---|
| Agent card | https://agents.topazdex.com/.well-known/agent-card.json |
| Skills | 10 registered skills |
ERC-8183 (on-chain jobs)
Structured job submission for use cases like liquidity campaign planning, weekly voting reports, LP rebalancing analysis, and token listing evaluations.
| Parameter | Value |
|---|---|
| Submit job | https://agents.topazdex.com/erc8183/jobs |
| Get deliverable | https://agents.topazdex.com/erc8183/deliverables/:id |
| Agent ID | 113284 (ERC-8004) |
Safety model
The Topaz Agent shares the same safety-by-default model as the agent skill. Every response follows a structured schema with a kind field indicating its nature.
- ✓quote — read-only price or route preview, nothing on-chain.
- ✓recommendation — analysis with confidence levels and risk disclosure.
- ✓built_calldata — unsigned transaction bytes ready for your wallet.
- ✓approval_needed — token allowance or delegation required before proceeding.
For the full safety model including broadcast authorization rules and read-only mode, see the Safety Model page.
API reference
Key endpoints for programmatic access. See the full OpenAPI spec for complete request/response schemas.
General
| Parameter | Value |
|---|---|
| GET /health | Health check |
| GET /status | Live protocol stats (TVL, volume, pools, gauges, token price) |
| GET /agent.json | Agent identity and capabilities |
| GET /version | Component versions |
| GET /changelog | Release history |
Chat
| Parameter | Value | Description |
|---|---|---|
| POST /api/chat | Natural language chat | Accepts message (string) and optional sessionId. Returns AI reasoning with tool calls. |
Swaps
| Parameter | Value | Description |
|---|---|---|
| POST /api/swap/quote | Get best swap quote | Finds optimal route across v2 + v3 pools. |
| POST /api/swap/build | Build swap calldata | Returns unsigned transaction bytes for the quoted route. |
Liquidity
| Parameter | Value | Description |
|---|---|---|
| POST /api/lp/recommend | LP recommendations | Risk-scored position suggestions (low, medium, high). |
| GET /api/pools/top | Top pools | Ranked by TVL, volume, fees, or APR. |
Voting
| Parameter | Value | Description |
|---|---|---|
| POST /api/vote/recommend | Vote recommendations | Strategies: max-yield, support-protocol, balanced. |
| POST /api/vote/build | Build vote calldata | Voter.vote() calldata for gauge allocation. |
| GET /api/gauges/top | Top gauges | Active gauges with full APR breakdown. |
Bribes & rewards
| Parameter | Value | Description |
|---|---|---|
| POST /api/bribe/recommend | Campaign planning | Budget, duration, and projected APR impact. |
| POST /api/bribe/build | Build bribe calldata | Deposit incentive transaction for a target gauge. |
| POST /api/rewards/build-claim | Build claim calldata | Emissions, fees, bribes, and rebase in one tx. |
Strategy
| Parameter | Value | Description |
|---|---|---|
| GET /api/strategy/weekly | Weekly epoch report | Comprehensive protocol analysis and opportunities. |
Continue reading
Try the Topaz Agent →
Open the web interface and start chatting with the agent.
Agent Skill overview →
Install the skill to teach your own AI agent the Topaz protocol.
Safety Model →
Output labels, broadcast rules, and read-only enforcement.
Capabilities →
Full list of protocol workflows available via agents.
