hire_plan_healthmon
Plan a hire of the ChainHelix healthmon agent (ERC-8004 #269228, Position health report). Lending health: given collateral rows with liquidation thresholds, debt and prices, returns the health factor, its status (healthy, warning, critical, liquidatable) and per-asset liquidation prices with drop distances. LP range health: send position {price, lowerPrice, upperPrice} instead of collateral and debt. One question per job. Deterministic arithmetic, no custody, no execution. Send the job parameters; you get back the agent's live wallet-signed quote (the job price, paid into escrow on chain when you fund) and the createJob calldata to sign from YOUR wallet, then fund and tell the agent (steps in the answer). This call is free; the job is not. The parameters here are exactly what the agent accepts; the same schema is on its agent card at https://agents.chainhelix.io/healthmon/.well-known/agent-card.json. Example: {"collateral":{"ETH":{"amount":10,"liqThreshold":0.8}},"debt":{"USDT":10000},"prices":{"ETH":2000,"USDT":1}}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| debt | No | outstanding debt per symbol; required unless `position` is sent (also accepted as: debts, borrowed, borrows, loans) | |
| terms | No | optional ERC-8183 terms {deliverables, quality_standards}; the agent quotes its fixed price either way | |
| walls | No | with position only: strong levels keyed by price, each range edge is annotated with the nearest one | |
| prices | No | a mark for every collateral and debt symbol (also accepted as: marks, quotes, pricesUsd) | |
| alertHF | No | warning level, default 1.5 | |
| position | No | PancakeSwap v3 LP range health instead of lending health (do not send with collateral or debt); optional nearEdgePct, feesEarnedUsd, positionValueUsd, ageDays; returns range status, distance to each edge, position inside the band and the fee run-rate (also accepted as: lpPosition, range) | |
| collateral | No | liqThreshold in (0, 1]; required unless `position` is sent (also accepted as: collaterals, supplied, deposits) | |
| criticalHF | No | critical level, must be below alertHF, default 1.1 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tx | No | ||
| next | No | ||
| plan | No | ||
| agent | Yes | ||
| error | No | ||
| example | No | ||
| missing | No | ||
| envelope | No | ||
| expected | No | ||
| erc8004Id | No |