1. High-Level Evolution
2. Yield Discovery & Metadata
3. Actions & Transaction Workflow
Entering a Yield
Legacy — POST /v1/actions/enter- Send payload with nested addresses and custom fields.
- Response: action ID + list of transaction IDs.
- For each ID call
PATCH /v1/transactions/{id}to fetch unsigned tx. - Sign, broadcast, then submit hash per transaction.
ActionDto containing every TransactionDto in order, fully populated and annotated. Sign, broadcast, then PUT /v1/transactions/{transactionId}/submit-hash to report each hash. No extra construct calls.
Exiting / Unstaking
- Legacy —
POST /v1/actions/exitfollowed by per-transaction construct calls. - New — Same endpoint path, same one-shot transaction return pattern.
Manage Actions (claims, restakes, redelegations)
4. Balances
Each balance payload directly includes any passthrough strings required for future manage calls.
5. Before / After Quick Reference
6. Additional Notable Changes
- Hostname has moved from
api.stakek.ittoapi.yield.xyz. - Terminology:
integrationId→yieldId; “pending actions” → manage actions. - Pagination: large lists (yields, validators) return
limitandoffset. - Error clarity: validation errors now cite the exact missing or malformed field.
7. Detailed Side-by-Side Comparison of Naming and DTOs
YieldDto Comparison
- API 1.0 (Legacy)
- API 2.0 (Current)
- Schema-driven arguments – v2 introduces structured
mechanics.argumentsfor enter, exit, and manage actions - Top-level token definitions – v2 exposes
inputTokensandtokenat the root - Normalized reward rate format –
rewardRatein v2 includes detailed breakdown viacomponents[] - Separated metadata and mechanics – v2 cleanly separates UI-facing display data from execution logic
YieldBalanceDto Comparison
- API 1.0 (Legacy)
- API 2.0 (Current)
- Unified Lifecycle States – v2 replaces
"staked","rewards"with consistent types:active,claimable,withdrawable,entering,exiting,locked - Flattened Balance Structure – v2 eliminates grouped balances in favor of flat positions
- Simplified Amount Handling – v2 standardizes on
amount,amountRaw, andamountUsd - Embedded Validator Metadata – v2 includes full validator metadata directly on each balance
ActionDto Comparison (Enter-Stake Flow)
- API 1.0 Request
- API 2.0 Request
- API 1.0 Response
- API 2.0 Response
PATCH /transaction/{id} per transaction step to get the unsignedTransaction- Schema-driven requests – v2 replaces nested
argswith top-levelargumentsobject - Unified action structure – All actions return same
ActionDtoformat withintent,type,yieldId - Transactions included by default – v2 embeds
unsignedTransaction,structuredTransaction,annotatedTransactiondirectly - Gas estimates and step metadata – Each transaction includes
gasEstimate,stepIndex, andtitle
Migration Tips
1
Drive everything from the schema
Always pull
GET /v1/yields/{id} and build your request exactly as that schema dictates.2
Remove transaction construction logic
No need to construct transactions via endpoint one by one anymore. Simply create the action, sign and submit each transaction!
3
Test in parallel
v1 and v2 can run side by side under the same API key—migrate flow by flow.
4
Use balance endpoint for passthrough
Use the balance endpoint to capture any passthrough needed for manage actions.
Developer Update Checklist
Rename & Map Fields
Switch to
yieldId, metadata.*, rewardRate.*, lifecycle typeGenerate UI from Schema
Read
yield.mechanics.arguments to create forms; note validatorAddress (string) vs validatorAddresses (array)Fetch Validators Separately
Use
/validators endpoint - no inline arraysUse Balance Lifecycle
Drive labels/buttons from
balance.type and pendingActionsSimplify Actions
One create-action call → sign each
TransactionDto → PUT /submit-hash; no construct-tx calls neededUpdate Types
Update TypeScript interfaces to match new DTO structures
Support
If you need help migrating, contact hello@yield.xyz.Next Steps
API Reference
Current API documentation
Quickstart
Get started with v2

