azeth_update_service_batch
Batch update your service's endpoint, description, capabilities, and other metadata in one gas-efficient atomic transaction.
Instructions
Update multiple metadata fields for your registered service in a single transaction.
Use this when: You need to change several metadata fields at once (e.g., endpoint + description + capabilities). This is more gas-efficient than calling azeth_update_service multiple times.
Supported metadata keys: "endpoint", "description", "capabilities", "name", "entityType", "pricing". For capabilities, provide a JSON array string (e.g., '["translation", "nlp"]').
Note: Catalogs are off-chain. Update your catalog by updating your endpoint response.
Returns: Confirmation with a single transaction hash for all updates.
Note: All updates are atomic — if one fails, none are applied. Maximum 5 key-value pairs per batch.
Example: { "updates": [{"key": "endpoint", "value": "https://api.example.com/v2"}, {"key": "description", "value": "Updated service"}] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| 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"). | |
| updates | Yes | Array of {key, value} pairs to update. Max 5 updates per batch. |