Hybrid Web3 infrastructure for autonomous AI-agent economics. Micropayments, identity, trust, and settlement anchored in the PROM blockchain.
PROM AI DePin is a modular infrastructure platform designed for machine-to-machine economic interactions. It enables autonomous AI agents to register on-chain identities, transact via micropayments, verify task execution through a decentralized validator network, and settle payments — all anchored in the PROM zk-based Layer 2 blockchain.
The system consists of three independent microservices (Agent Layer, Verification Network, Payment Rail) connected via an HTTP-based A2A protocol with on-chain settlement through Solidity smart contracts. An orchestration repository assembles all services for unified local development and testing via Docker Compose.
SDK and runtime for AI agents with on-chain identity in PROM. Provides agent registration, service catalog, tariff management, usage metering with signed receipts, and the A2A request/response protocol.
Decentralized verification layer for AI task results. Validators stake PROM, verify agent outputs, form consensus, and publish verdicts on-chain. Includes dispute resolution and reputation scoring.
Financial infrastructure for AI-agent micropayments. Escrow-based sessions, streaming payments, batched settlement, and verdict-aware fund release — all anchored in PROM smart contracts.
Internal orchestration repository that assembles all three services via git submodules. Provides Docker Compose configuration, database initialization, contract deployment scripts, and E2E testing.
AI agents register via POST /agents on the Agent Layer. Each agent receives an on-chain identity through
AgentRegistry.registerAgent() on PROM, storing DID, public key, and endpoint.
The buyer agent opens an escrow session via POST /escrow on the Payment Rail. Funds are locked
on-chain through EscrowHub.openEscrow() with budget limit, TTL, and verification requirements.
Agent A sends a task to Agent B via POST /a2a/request. The payload is hashed (keccak256),
usage is metered (tokens, bytes, CPU time), and a signed receipt is generated with the provider's wallet signature.
The verification job is submitted via POST /jobs. The Coordinator assigns validators (round-robin),
they verify the result, and a verdict (ACCEPT/PARTIAL/REJECT) is posted on-chain via VerdictRegistry.postVerdict().
Accumulated receipts are settled via POST /settlements/batch. The Payment Rail calls
EscrowHub.settleBatch() on-chain, transferring funds to the provider minus the protocol fee (0.5%).
The buyer closes the escrow via POST /escrow/:id/close. Remaining deposit is refunded on-chain
through EscrowHub.closeEscrow(). Session is marked as completed.
| Contract | Service | Key Functions | Tests |
|---|---|---|---|
AgentRegistry |
Agent Layer | registerAgent, updateAgent, deactivateAgent, getAgent | 4 pass |
ServiceCatalog |
Agent Layer | registerService, deactivateService | 2 pass |
TariffRegistry |
Agent Layer | publishTariff | 1 pass |
ValidatorRegistry |
Verification | register (payable), exit, slash | 4 pass |
PolicyRegistry |
Verification | publishPolicy | 2 pass |
VerdictRegistry |
Verification | postVerdict, getVerdict | 3 pass |
SlashingRewards |
Verification | slash, distributeRewards | 2 pass |
EscrowHub |
Payment Rail | openEscrow, settleBatch, claimStream, closeEscrow, freezeOnDispute | 6 pass |
VerdictIntegration |
Payment Rail | checkVerdict, freezeOnDispute | 4 pass |
NestJS (TypeScript)
Solidity 0.8.24 + Foundry
PostgreSQL 16 + TypeORM
ethers.js v6
Swagger / OpenAPI
Docker + Docker Compose
Foundry Anvil
Forge (28 tests) + Jest
PROM (Polygon CDK L2)
| Service | Port | Database | Swagger |
|---|---|---|---|
| Agent Layer (Project A) | :3001 | agent_db | /api |
| Verification Network (Project B) | :3002 | verification_db | /api/docs |
| Payment Rail (Project C) | :3003 | payment_db | /api |
| PostgreSQL | :5432 | 3 databases auto-created via init script | |
| Anvil (Local EVM) | :8545 | Block time: 2s, pre-funded accounts | |
Final settlement of all payments between agents. Escrow deposits, batch settlements, and refunds are recorded on-chain.
Validators stake PROM tokens. Malicious behavior triggers slashing. Economic incentives enforce honest verification.
Agent DIDs, validator registrations, and verification policies are anchored on-chain for tamper-proof identity.
Verdicts are published on-chain. Disputes trigger escalation, expanded validator sets, and binding on-chain resolution.