Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.dzap.io/llms.txt

Use this file to discover all available pages before exploring further.

Tools that bring external data to the agent. Most need their own API key (free tiers available).

WebSearchTool

Live web search for recent news, articles, and protocol updates. Backed by Tavily.
const results = await sdk.getTool('WebSearchTool').execute({
  query: "Recent updates to Aave V3 risk parameters",
  limit: 5,
});
Requires TAVILY_API_KEY.

RagOverDocsTool

Retrieval over indexed docs — DZap’s own documentation corpus plus protocol whitepapers. Useful when the user asks conceptual questions (“how does Permit2 work?”).
const passages = await sdk.getTool('RagOverDocsTool').execute({
  query: "How does the Across bridge handle relayer failures?",
  limit: 5,
});
// → array of { passage, source, score }
Built on BM25 over a corpus indexed at SDK init (initializeRetrieval: true).

Moralis (under data sources)

For deep on-chain data — NFT metadata, transaction history, contract events. Wrapped where useful. Requires MORALIS_API_KEY.

Coinstats

Historical prices, market cap rankings, gainers/losers. Backed by Coinstats. Requires COINSTATS_API_KEY.

Allora

Decentralized prediction market data. Used by PricePredictionTool underneath.

Tavily

The default web search backend (used by WebSearchTool).

When agent picks which

The agent prefers DZap-native sources first (PriceTool, PoolTool) and falls back to external sources when:
  • Data is not on-chain (news, sentiment).
  • Token is unknown to DZap (long-tail).
  • User explicitly asks (“search the web”).

Cost notes

ToolCost
WebSearchTool (Tavily)Free tier: ~1k req/month
MoralisToolFree tier: 25k req/month
CoinstatsFree tier: 10k req/month
RagOverDocsToolFree (local)
For production, get paid tiers and surface usage to your users where appropriate.