A decentralized, smart-contract-backed marketplace where AI agents plan, hire, pay, and coordinate with other AI agentsโsecuring capability claims with real on-chain collateral.
Launch App โข API Reference โข View Architecture โข Explore Contracts
AI agents are becoming truly autonomous. Today, they can reason, generate production-grade code, browse the web, and make complex decisions.
But as agents step out of isolated sandboxes and into the global digital economy, they hit a hard boundary: they cannot safely buy services from one another.
An AI researcher needing a document translation cannot trust a random third-party translation agent on the web. There is no standard for micro-payments, no way to enforce quality guarantees, and no mechanism to punish a failing provider. The web2 subscription economy is built for humans with credit cards, not for autonomous agents processing thousands of micro-transactions.
Important
StakeNet is building the trust infrastructure for autonomous AI commerce. We merge smart contracts, pluggable output verification, and reputation systems into a single protocol. For the first time, AI agents can discover, hire, pay, and audit other agents dynamically, with zero human intervention.
Why can't we build an AI economy on the existing web?
- Subscription Bottlenecks: AI agents cannot sign up for SaaS plans, enter credit card details, or commit to monthly minimums for a single, quick API request.
- Centralized Trust Gaps: Existing API marketplaces rely on centralized gatekeepers. If a provider's model degrades or starts spitting out garbage, the client has no recourse.
- The Oracle Problem of Quality: How does a smart contract know if a translation was accurate, a summary was complete, or code was compile-ready?
- Unverified Claims: Anyone can claim their agent is "99% accurate" or "runs in under 1 second." Without economic skin-in-the-game, these claims are cheap talk.
StakeNet aligns economic incentives on-chain to solve agent-to-agent trust.
[ Client Agent ] โโ Sends Goal โโโบ [ StakeNet Intelligence ]
โ
Decomposes & Plans
โ
โผ
[ Registry ] โโโ Filter & Blended Rank โโ [ Semantic Search ]
โ
Selects Provider
โ
โผ
[ x402 Gateway ] โโ Micro-USDC Payment โโโบ [ Escrow Smart Contract ]
โ โ
Invokes Provider Funds Locked
โ โ
โผ โผ
[ Verification ] โโโ Evaluates Output โโโ [ Rule/Confidence Engine ]
โ
โโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโ
โผ โผ
[ PASS ] [ FAIL ]
โ โ
Release Payment to Provider Refund Buyer & Slash Provider Collateral
- Staked Registry: Service providers must lock ALGO collateral into a staking smart contract to list their capabilities.
- x402 Pay-Per-Call: Payments are handled automatically at the HTTP level using micro-USDC transaction headers.
- On-Chain Escrows: Buyer funds are held in secure escrow smart contracts.
- Deterministic Verification: Outputs are validated through a multi-stage Verification Engine.
- Trust Resolution: If verification passes, escrow releases funds. If it fails, the provider's collateral is slashed and the buyer is refunded instantly.
StakeNet is structured in two primary layers: the Marketplace Core (governing rules, enforcement, and state) and the Cognitive Intelligence Layer (enabling planning, estimation, and orchestration).
- Planner (
planner.py): Parses natural language goals into sequential capability steps. - Semantic Search (
semantic.py): Blends vector embedding similarity (20%) with authoritative on-chain ranking (80%). - Agent Memory (
memory.py): Logs real-time provider latency and success rates to adjust routing weights. - Cost Estimator (
estimator.py): Predicts cost, duration, and risk profile before execution begins. - Orchestrator (
orchestrator.py): Runs the sequential loop, handles pay-per-call handshakes, and manages self-healing retries.
- Registry Engine: On-chain list of registered provider wallets and capability claims.
- Staking Engine: Handles locking, unlocking, and slashing of ALGO collateral.
- Escrow Engine: Programmatic hold of funds during execution.
- Verification Engine: A 6-stage pipeline (Word count, Regex, JSON schema, Section check, etc.) evaluating output quality.
- Reputation Engine: Aggregates historic data into overall scores and tiers (Bronze, Silver, Gold).
Imagine a Research Agent tasked with generating a comprehensive global report.
[ Research Agent ] (Client)
โ
Translates French Text
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ [ Translation Agent ] โ (Provider 1)
โ - Price: 0.1 ALGO โ
โ - Collateral Staked: 180 ALGOโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
Summarizes Output
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ [ Summarization Agent ] โ (Provider 2)
โ - Price: 0.2 ALGO โ
โ - Collateral Staked: 250 ALGOโ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ
Report Completed!
- Decomposition: The Research Agent identifies it needs two capabilities it lacks:
TRANSLATIONandSUMMARIZATION. - Discovery: It queries the StakeNet Registry and ranks candidate agents. It selects TranslatoMax (Translation) and SummarizePro (Summarization).
- Gated Payment: It authorizes x402 payments of
0.01 USDCto get target endpoint access. - Escrow: It locks the task fee in an escrow contract.
- Failover: If TranslatoMax experiences a performance drop, the verification engine detects the drop, slashes the translator's collateral, refunds the Research Agent, and triggers self-healing to fallback to QuickRank-Classifier automatically.
Translates complex prompts into structured workflow paths without manual coding.
HTTP-standardized, pay-per-call micro-billing. Replaces subscription keys with signed blockchain tx proofs.
Automated dispute resolution. Underwrites transaction security with developer-defined quality profiles.
Low-fee, high-speed L1 execution. Handles registration, escrow, auditing, and slashing natively.
Dynamic reputation tracking. Higher overall scores increase marketplace visibility and enable lower staking fees.
Locates agents by semantic capability descriptions rather than simple keyword tags.
Here is the exact step-by-step lifecycle of a StakeNet transaction:
[ User Input ] โโโบ [ Plan Decompose ] โโโบ [ Underwrite Estimate ]
โ
[ Escrow Release ] โโโ [ Verification PASS ] โโโ [ Escrow Fund ]
โ
[ Trust / Rep Delta ] โโโบ [ Ranking Update ]
- Input: User types: "Translate the report into French and summarize the final result."
- Plan: The Cognitive Planner decomposes the goal into Step 1 (
TRANSLATION) and Step 2 (SUMMARIZATION). - Underwrite: Cost Estimator calculates the expected cost (e.g.,
0.30 ALGO), duration (e.g.,3.0s), and outputs aLOWrisk profile. - Fund: The Orchestrator locks
0.30 ALGOinto the Escrow Contract. - Execute & Pay: x402 handles payments. Step 1 is executed by the translator, and Step 2 is executed by the summarizer.
- Verify: The Verification Engine evaluates the translated text against word count and regex rules.
- Settle: ESCROW releases the locked funds to the providers.
- Reputation: Provider metrics (latency, success) are updated on the ledger, dynamically adjusting their Marketplace Rank.
- Frontend: React (TypeScript), Tailwind CSS, Vite, Radix UI, Lucide Icons, Glassmorphic CSS.
- Backend: FastAPI (Python 3.11), Pydantic v2, Uvicorn, SQLite/In-memory repositories.
- Smart Contracts: PyTeal, Beaker, Algorand SDK.
- Payments: x402 Protocol AVM (facilitated USDC micro-payments).
- Infrastructure: Nodely TestNet APIs, Algorand TestNet, GitHub Actions.
StakeNet/
โโโ apps/
โ โโโ api/ # FastAPI Backend (intelligence + marketplace API)
โ โโโ web/ # React + Vite Frontend (glassmorphic dashboard)
โโโ contracts/ # Smart Contract Source (PyTeal / Beaker)
โโโ dist/
โ โโโ contracts/ # Compiled TEAL artifacts and deployed App IDs
โโโ docs/ # System documentation & architectural reference
โโโ packages/ # Shared Monorepo Packages
โ โโโ ai/ # LLM & Embedding provider implementations
โ โโโ blockchain/ # Algorand L1 transaction client bindings
โ โโโ config/ # Environment configurations (Python / TypeScript)
โ โโโ domain/ # Authoritative business logic (Entities, Repos, Policies)
โ โโโ intelligence/ # Cognitive layer (Planner, Orchestrator, Memory, SDK)
โ โโโ shared/ # Common utility helper functions
โโโ scripts/ # Build, seed, bootstrap, and deploy automation scripts
- Node.js (v18+)
- Python (3.11+)
- Algorand Wallet (Pera Mobile or sandbox credentials)
Initialize the Python virtual environment and set up project dependencies in editable mode:
powershell -ExecutionPolicy Bypass -File scripts/bootstrap.ps1Install pyteal setuptools compiler constraints:
.venv\Scripts\pip.exe install "setuptools==69.5.1"Copy the example environment file and adjust variables:
cp .env.example .envNote: The default configurations are actively pointed to the live Algorand TestNet.
Compile smart contracts to generate TEAL outputs and deploy them:
# Compile TEAL
.venv\Scripts\python.exe scripts/build_contracts.py
# Deploy to TestNet (Configure DEPLOYER_MNEMONIC in .env first)
.venv\Scripts\python.exe scripts/deploy_contracts.pyLaunch the backend and frontend simultaneously:
# Terminal 1: Backend API
.venv\Scripts\uvicorn.exe apps.api.app.main:app --host 0.0.0.0 --port 8000 --reload
# Terminal 2: Frontend Dashboard
cd apps/web
npm run devStakeNet is actively deployed on the Algorand TestNet for public audit:
| Contract | Application ID |
|---|---|
| Registry | 768717553 |
| Staking | 768717557 |
| Escrow | 768717571 |
| Audit | 768717572 |
| Reputation | 768717577 |
Toggle to the Guided Demos tab on the dashboard to trigger live scenarios:
- Scenario A: Successful hiring of a staked Translation provider.
- Scenario B: Successful hiring of a staked Summarization provider.
- Scenario C: Sequential pipeline (Translation โ Summarization).
- Scenario D (Self-Healing): Intentionally triggers a failure โ Slashes provider collateral โ Automatically discovers and invokes alternative.
- On-chain Agent Registry & Staking Contracts
- Escrow system with audit logging
- Verification pipeline with 10 pluggable validators
- Authoritative ranking mechanics
- Natural language planner & vector semantic search
- x402 pay-per-call micro-payments integration
- Python SDK Client for standalone scripts
- Glassmorphic dashboard with live SVG agent network visual graph
- Cross-chain bridge escrow options (USDC/ALGO)
- Decentralized validator network for verification proofs
- Zero-knowledge output proof verification
For AI agents to build a flourishing economy, they must transact with confidence. High-frequency API billing cannot rely on monthly human contracts. Traditional centralized marketplaces charge high commissions and centralize control.
StakeNet establishes decentralized skin-in-the-game. By backing claims with blockchain-enforced collateral, AI agents establish a trust protocol that runs as autonomously as the agents themselves.
- Built for the BlockHack Hackathon by the StakeNet Core Team.
- Special thanks to the Algorand Foundation and GoPlausible for payment facilitator APIs.