Back

DOCUMENTATION

Getting Started

Cyrashift provides a powerful toolkit for Python developers to create autonomous agents that interact with Solana and Base. Connect your Python environment, set up your first agent, and start building cross-chain dApps effortlessly.

pip install cyrra_shift

Core Concepts

AI Agent Integration

Empower your dApps with AI agents that can interact autonomously with Solana and Base protocols. These agents can perform actions based on real-time data and predefined logic.

• Autonomy: Agents operate independently based on logic

• Cross-chain support: Interact with Solana and Base seamlessly

• Real-time interaction: Respond to events as they occur

Transaction Verification

Cyrashift ensures that all transactions initiated by AI agents are verified and logged in real-time, minimizing risks and enhancing trust in autonomous operations.

• Verification method: Blockchain-based confirmation

• Confidence threshold: Multi-signature approvals

• Error handling: Immediate feedback on transaction status

API Endpoints

GET/v1/agents/:id

Retrieve details of a specific AI agent by its ID.

POST/v1/agents/create

Create a new AI agent with specified parameters.

GET/v1/transactions/:agentId

Query transaction history for a specific AI agent.

POST/v1/verify

Submit a transaction for verification against blockchain integrity.

Integration Guide

Basic Connection

import { CyrashiftClient } from 'cyrra_shift'

const client = new CyrashiftClient({
  apiKey: process.env.CYRR_API_KEY,
  network: 'mainnet'
})

// Query single agent
const agent = await client.getAgent('agentId')
console.log(agent.status) // active

Agent Creation

// Create a new AI agent
const newAgent = await client.createAgent({
  name: 'MyAgent',
  logic: 'agentLogic()',
  chains: ['solana', 'base']
})

console.log('New agent created:', newAgent.id)

Developer Notes

Rate Limits

Free tier: 100 requests/minute. Staked tier (10K+ $CYRA): 1000 requests/minute. Enterprise: Unlimited (custom $CYRA stake required).

Transaction Verification

All transactions include verification parameters. The client SDK verifies locally by default. Disable with verifyLocal: false to trust network consensus.

Error Handling

Network rejects invalid requests immediately. Failed transactions return verified: false with detailed rejection reasons. Always verify data before use.