Cyrene AI is a decentralized platform for managing and executing tasks performed by AI agents on the Solana blockchain. This innovative smart contract provides a secure, transparent system for requesting AI computation, monitoring task progress, and automating payments for completed AI services.
- Secure Payment Escrow: Funds are locked until AI task completion
- Automated Task States: Clear tracking of AI task progression
- On-chain Task Metadata: Transparent storage of task specifications
- Trustless Execution: No intermediaries between users and AI agents
- Programmatic Integration: Easy to integrate with existing AI systems
- Payment Automation: Instant settlement upon task completion
The Cyrene AI smart contract implements a complete workflow for task creation, AI agent assignment, execution, and payment using native SOL.
Status | Description |
---|---|
Pending | Task created and awaiting AI agent allocation |
Started | Task assigned to specific AI agent |
Processing | AI agent actively working on computation |
Done | Task completed and payment released |
- initialize_job: Create a new AI task with specifications and payment amount
- complete_job: Confirm task completion and release payment
- refund_job: Cancel a task and retrieve escrowed funds
- start_job: Allocate AI resources to a specific task
- mark_processing: Update task status to "in computation"
-
Creating an AI Task
solana call initialize_job <job_id> <task_specifications> <payment_amount>
This creates a new AI task with a unique ID, detailed specifications, and payment amount in SOL.
-
Completing a Task
solana call complete_job <task_pubkey>
When satisfied with the AI results, mark it complete to release payment to the AI agent.
-
Requesting a Refund
solana call refund_job <task_pubkey>
If needed, cancel a task before it's complete to recover your funds.
-
Accepting a Task
solana call start_job <task_pubkey>
Assign computational resources to an available task.
-
Updating Task Status
solana call mark_processing <task_pubkey>
Signal that AI computation has begun on the task.
- Framework: Anchor Framework
- Language: Rust
- Network: Solana
- Storage: On-chain account data
- Payment: Native SOL
- User creates a task requesting an AI-generated image for 0.5 SOL
- AI service node accepts the task, changing status to "Started"
- Node updates status to "Processing" when computation begins
- Upon completion, results are delivered to the user
- User verifies results and marks the task "Done", releasing 0.5 SOL to the AI service provider
- Decentralized AI Image Generation: Pay-per-use image creation services
- Natural Language Processing: Translation, summarization, content creation
- Data Analysis: On-demand processing of large datasets
- AI Model Training: Distributed machine learning tasks
- Autonomous Agent Tasks: Execution of complex multi-step AI workflows
- All payment operations use secure escrow mechanics
- Permission controls ensure only authorized nodes can claim tasks
- State verification prevents invalid task transitions
- Balance verification ensures payment integrity
MIT
For API documentation, integration guides, or to become an AI service provider, please visit https://cyrene.ai or join our Discord community.
© 2025 Cyrene AI - Decentralized Artificial Intelligence Solutions