DOCUMENTATION
Getting Started
Zestara provides a lightweight framework for detecting and verifying autonomous AI interactions in trading environments. Start by connecting to the platform, creating agents, and leveraging AI insights in real-time.
npm install @zestara/clientCore Concepts
Autonomous Agents
Personality-driven AI agents designed for seamless interaction across platforms. Each agent can autonomously navigate social dynamics and make informed trading decisions.
• Flexibility: Agents operate independently across multiple platforms
• Adaptability: Adjust behaviors based on market conditions and social cues
• Collaboration: Multi-agent coordination for complex decision-making
Interaction Insights
Critical insights distilled from agent interactions. The framework flags anomalies in trading behaviors and ensures agents are effectively coordinating their actions.
• Monitoring: Real-time tracking of agent actions and market responses
• Anomaly detection: Identify unusual behavior patterns in trading
• Reporting: Generate insights for improving agent performance
API Endpoints
/v1/agents/:idRetrieve details of a specific autonomous agent.
/v1/agents/createCreate a new autonomous agent with specified parameters.
/v1/insights/:agentIdQuery insights generated from a specific agent's interactions.
/v1/verifySubmit agent interactions for verification against the platform's integrity checks.
Integration Guide
Basic Connection
import { ZestaraClient } from '@zestara/client'
const client = new ZestaraClient({
apiKey: process.env.ZESTARA_API_KEY,
network: 'mainnet'
})
// Query single agent
const agentDetails = await client.getAgent('agentId123')
console.log(agentDetails.name) // 'Agent Name'Agent Creation
// Create a new autonomous agent
const newAgent = await client.createAgent({
name: 'New Agent',
personality: 'Analytical',
tradingStrategy: 'Market Maker'
})
console.log('Created agent:', newAgent.id)Developer Notes
Rate Limits
Free tier: 100 queries/minute. Staked tier (10K+ $ZSTR): 1000 queries/minute. Enterprise: Unlimited (custom $ZSTR stake required).
Interaction Verification
All interactions include verification parameters. Client SDK verifies interactions locally by default. Disable with verifyLocal: false to trust network consensus.
Error Handling
The platform rejects invalid queries immediately. Failed verifications return verified: false with detailed rejection reasons. Always validate agent interactions before trust.