TopazTOPAZDocs

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.

Non-custodial by design
The Topaz Agent never holds private keys, never signs transactions, and never broadcasts unless you explicitly authorize it with configured signing credentials. Every interaction produces labeled outputs so you always know whether anything moved on-chain.

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.

bash
# 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

ParameterValueDescription
swap.quote/api/swap/quoteBest route across v2 + v3 pools with price impact and slippage estimates.
swap.build/api/swap/buildWallet-ready calldata for the quoted route. Returns unsigned transaction bytes.
route.alternatives/api/swap/quoteSide-by-side v2 vs v3 route comparison with gas estimates.

Liquidity

ParameterValueDescription
lp.recommend/api/lp/recommendRisk-scored position recommendations with TVL floors and APR cap guardrails.
lp.build/api/lp/buildBuild LP calldata — addLiquidity for v2, mint for v3 CL positions.

Voting & veTOPAZ

ParameterValueDescription
vote.recommend/api/vote/recommendGauge allocation optimization — max-yield, support-protocol, or balanced strategies.
vote.build/api/vote/buildBuild Voter.vote() calldata for your veNFT allocation.
vote.eligibility/api/vote/eligibilityCheck if a veNFT can vote this epoch (cooldown, already voted, etc.).

Bribes & rewards

ParameterValueDescription
bribe.recommend/api/bribe/recommendCampaign planning with budget, duration, and projected APR impact.
bribe.build/api/bribe/buildBuild bribe deposit calldata for a target gauge.
rewards.build-claim/api/rewards/build-claimClaim emissions, trading fees, bribes, and rebase in a single transaction.

Analytics & strategy

ParameterValueDescription
strategy.weekly_report/api/strategy/weeklyComprehensive epoch report — protocol state, top pools, opportunities.
pool.lookup/api/pools/topFind pools for a token pair, ranked by TVL, volume, fees, or APR.
pool.compare/api/pools/topCompare 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.

ParameterValue
Spechttps://agents.topazdex.com/openapi.json
Base URLhttps://agents.topazdex.com
AuthNone (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.

ParameterValue
Endpointhttps://agents.topazdex.com/mcp
ProtocolJSON-RPC 2.0 (MCP 2024-11-05)
Tools27
json
{
  "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.

ParameterValue
Agent cardhttps://agents.topazdex.com/.well-known/agent-card.json
Skills10 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.

ParameterValue
Submit jobhttps://agents.topazdex.com/erc8183/jobs
Get deliverablehttps://agents.topazdex.com/erc8183/deliverables/:id
Agent ID113284 (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.
Guardrails
The agent enforces LP recommendation guardrails including TVL floors and APR caps to avoid directing users toward unsustainable yield traps. All recommendations include mandatory confidence levels and a risk disclosure section.

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

ParameterValue
GET /healthHealth check
GET /statusLive protocol stats (TVL, volume, pools, gauges, token price)
GET /agent.jsonAgent identity and capabilities
GET /versionComponent versions
GET /changelogRelease history

Chat

ParameterValueDescription
POST /api/chatNatural language chatAccepts message (string) and optional sessionId. Returns AI reasoning with tool calls.

Swaps

ParameterValueDescription
POST /api/swap/quoteGet best swap quoteFinds optimal route across v2 + v3 pools.
POST /api/swap/buildBuild swap calldataReturns unsigned transaction bytes for the quoted route.

Liquidity

ParameterValueDescription
POST /api/lp/recommendLP recommendationsRisk-scored position suggestions (low, medium, high).
GET /api/pools/topTop poolsRanked by TVL, volume, fees, or APR.

Voting

ParameterValueDescription
POST /api/vote/recommendVote recommendationsStrategies: max-yield, support-protocol, balanced.
POST /api/vote/buildBuild vote calldataVoter.vote() calldata for gauge allocation.
GET /api/gauges/topTop gaugesActive gauges with full APR breakdown.

Bribes & rewards

ParameterValueDescription
POST /api/bribe/recommendCampaign planningBudget, duration, and projected APR impact.
POST /api/bribe/buildBuild bribe calldataDeposit incentive transaction for a target gauge.
POST /api/rewards/build-claimBuild claim calldataEmissions, fees, bribes, and rebase in one tx.

Strategy

ParameterValueDescription
GET /api/strategy/weeklyWeekly epoch reportComprehensive protocol analysis and opportunities.

Continue reading