hire_plan_yieldopt
Plan a hire of the ChainHelix yieldopt agent (ERC-8004 #269226, Yield allocation across pools). Given candidate pools with APY, optional TVL and risk score, and the capital to place, returns the allocation per pool under concentration and TVL-share caps, the blended APY and any capital left unallocated because a cap bound first. 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; an example is in the input schema description.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pools | No | candidate pools keyed by name; riskScore 1 (safest) to 5, default 3 (also accepted as: opportunities, vaults, farms) | |
| terms | No | optional ERC-8183 terms {deliverables, quality_standards}; the agent quotes its fixed price either way | |
| tvlCapPct | No | max share of a pool's TVL to hold, default 5 | |
| capitalUsd | No | capital to allocate (also accepted as: budgetUsd, capital, budget, amountUsd) | |
| riskAversion | No | 0 chases raw APY, 1 applies the full risk discount, default 0.5 | |
| maxPerPoolPct | No | max share of capital in one pool, at most 100, default 40 |
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 |