Manage position
Manage actions come from the balance itself. Read the position, pick one of itspendingActions[], and send its type and passthrough to POST /v1/actions/manage.
When to use
- Claim rewards (for example, “Claim my ATOM rewards”)
- Restake or compound rewards
- Claim funds after an unstake cooldown
- Rebond an unbonding amount, vote, delegate, or migrate
Authentication and host
Send the project API key in thex-api-key header.
Step 1: Read the balances and pending actions
balances[] has a type (active, entering, exiting, withdrawable, claimable, locked) and pendingActions[]. A pending action looks like:
passthrough is an opaque server-generated string. Send it back unchanged. arguments, when present, is the schema of extra input the action needs. For a multi-balance flow across addresses, use POST /v1/yields/balances (see check-portfolio).
Step 2: Create the manage action
POST /v1/actions/manage. yieldId, address, action, and passthrough are required. arguments is optional.
action is the pending action’s type. Which actions a yield supports is yield-specific; the manage schemas are in mechanics.arguments.manage, keyed by action type. Common values:
The full list is in the action types reference.
The response is
201 with an ActionDto (intent: "manage") and transactions[].
Step 3: Sign and submit
Same asenter-position: process transactions[] in stepIndex order, sign each unsignedTransaction, then use one path per transaction.
POST /v1/transactions/{transactionId}/submitwith{ "signedTransaction": "..." }for Yield.xyz to broadcast.PUT /v1/transactions/{transactionId}/submit-hashwith{ "hash": "0x..." }if you broadcast.
GET /v1/actions/{actionId} until SUCCESS, FAILED, or CANCELED.
Workflows
Compound rewards: read balances, find theRESTAKE_REWARDS pending action, create the manage action, sign and submit.
Claim after cooldown: wait until the balance is withdrawable, then run its pending action (for example CLAIM_UNSTAKED).
Switch validators: list GET /v1/yields/{yieldId}/validators, then run the pending action that the balance offers with the new validatorAddress in arguments, if the schema lists it.
Errors
Edge cases
- Only offered actions: If a balance has no matching pending action, the action is not available now. Do not construct one.
- Stale passthrough: Re-read balances if time has passed; do not reuse an old
passthrough. - Multiple validators: A balance can span several validators. Run actions per balance entry.
- Minimums: Some protocols require a minimum claimable amount before a claim is allowed.

