azeth_publish_service
Register a service, agent, or infrastructure on the ERC-8004 trust registry to make it discoverable by other participants. Returns a permanent token ID and creation transaction hash.
Instructions
Register a service, agent, or infrastructure on the ERC-8004 trust registry with metadata and capabilities.
Use this when: You want to make your agent or service discoverable by other participants in the Azeth network.
Returns: The trust registry token ID and creation transaction hash.
Note: This is a state-changing on-chain operation. The token ID is your permanent identity in the trust registry. Other participants can discover you by capability, entity type, and reputation score. The account is determined by the AZETH_PRIVATE_KEY environment variable.
Example: { "name": "MarketOracle", "description": "Real-time market data API", "entityType": "service", "capabilities": ["price-feed", "market-data"], "endpoint": "https://api.example.com" }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name for this participant in the trust registry. | |
| chain | No | Target chain. Defaults to AZETH_CHAIN env var or "baseSepolia". Accepts "base", "baseSepolia", "ethereumSepolia", "ethereum" (and aliases like "base-sepolia", "eth-sepolia", "sepolia", "eth", "mainnet"). | |
| catalog | No | Off-chain service catalog for multi-service providers. Included in initial registration as a snapshot; providers should serve their live catalog from their endpoint. Each entry: name, path, method (GET/POST/etc), description, pricing, capabilities, params, paid (default true), accepts (multi-chain payment methods). | |
| pricing | No | Listed price for this service (e.g., "$0.01/request", "Free", "$10/month"). Informational — actual x402 settlement price may differ. | |
| endpoint | No | Optional HTTP endpoint where this participant can be reached. | |
| entityType | Yes | Participant type: "agent" (AI agent), "service" (API/oracle), or "infrastructure" (bridge/relay). | |
| description | Yes | Human-readable description of what this participant does. | |
| capabilities | Yes | List of capabilities offered (e.g., ["swap", "price-feed", "translation"]). |