Are you an LLM? Read llms.txt for a summary of the docs, or llms-full.txt for the full context.
Skip to content

Service Registry

On-chain directory for discovering AMP-enabled services.


The AMP Service Registry is a Solana program that maintains a directory of AMP-enabled services. Any service provider can register. Agents query the registry to discover services by category, price, and reputation.

How it works

  1. Service provider calls register_service with their endpoint, pricing, and description
  2. The registry creates a ServiceEntry PDA for the provider
  3. Agents query the registry using getProgramAccounts with filters
  4. When channels are opened/settled, the registry statistics update via CPI

ServiceEntry account

FieldTypeDescription
providerPubkeyService provider's pubkey
endpointStringService URL or MCP connection string
categoryu8Service category (0-7)
rateu64Cost per unit
tokenPubkeyAccepted SPL token mint
min_depositu64Minimum channel deposit
reputation_scoreu64From on-chain reputation system
total_channelsu64Lifetime channels opened
total_settledu64Lifetime volume settled
active_channelsu32Currently active channels
activeboolWhether service is available

Categories

ValueCategory
0Inference (LLM, image gen, embeddings)
1Data (search, scraping, enrichment)
2Compute (GPU, serverless, batch)
3Storage (IPFS, Arweave, S3)
4Communication (email, SMS)
5Financial (pricing, market data)
6Identity (KYC, verification)
7Other

Querying (future SDK)

import { AMPRegistry } from "@valeo/amp-client"
 
const services = await registry.search({
  category: "inference",
  maxRate: "10000",
  minReputation: 5000,
  sortBy: "reputation",
})