Yield Lifecycle
Every yield operation follows the same pattern: prepare, sign, execute, track.1. Prepare
Callyield_prepare with an operation and your agent address. Rhaios returns strategy data plus setup/execution payloads.
intentId, needsSetup, and strategy metadata. If setup is needed, a setup block is returned (intentEnvelope: null); otherwise an execution block with intentEnvelope is returned.
2. Sign
IfintentEnvelope is present, your agent signs intentEnvelope.signing with its own key (EIP-712).If
needsSetup=true, execute the returned setup type-4 transaction first, then call yield_prepare again to get an executable intentEnvelope.
3. Execute
Pass the signed envelope toyield_execute.
intentId is optional and must match intentEnvelope.merkleRoot when present. The intent signer must match intentEnvelope.userOps[0].userOperation.sender.
4. Track
Callyield_status to monitor your positions.
yield_history to see historical APY data for any vault.
5. Withdraw
When ready to exit, callyield_prepare with operation: "redeem" to prepare withdrawal calldata.
yield_execute — same flow as depositing.
You can also rebalance between vaults using operation: "rebalance", which atomically redeems from one vault and deposits into a better one.