Skip to main content
POST
Exit a yield
Returns 201 with an ActionDto (intent: "exit"). Same body as Enter a yield, with arguments read from mechanics.arguments.exit on Get a yield. Exits with a cooldown do not return funds immediately: the balance moves to exiting, then exposes a pending action (for example CLAIM_UNSTAKED) that you run through Manage a yield. Partial exits pass arguments.amount as a human-readable decimal string; share-based yields can use shareAmount. Errors: 400 (including a yield that is unknown or not enabled for your project), 403 (geo-blocked), and 412 when the yield is closed for withdrawals (status.exit is false). See Errors and retries.

Authorizations

x-api-key
string
header
required

Body

application/json
yieldId
string
required

Yield ID to perform the action on

Example:

"ethereum-eth-lido-staking"

address
string
required

User wallet address

Example:

"0x1234..."

arguments
object

Arguments for the action

Response

Returns action with array of transactions to execute

id
string
required

Unique action identifier

Example:

"action_123abc"

intent
enum<string>
required

High-level action intent

Available options:
enter,
manage,
exit
Example:

"manage"

type
enum<string>
required

Specific action type

Available options:
STAKE,
UNSTAKE,
WITHDRAW_REQUEST,
INSTANT_WITHDRAW,
CLAIM_REWARDS,
AUTO_SWEEP_UNSTAKE_REWARDS,
AUTO_SWEEP_WITHDRAW_REWARDS,
RESTAKE_REWARDS,
WITHDRAW,
WITHDRAW_ALL,
RESTAKE,
CLAIM_UNSTAKED,
UNLOCK_LOCKED,
STAKE_LOCKED,
VOTE,
REVOKE,
VOTE_LOCKED,
REVOTE,
REBOND,
MIGRATE,
VERIFY_WITHDRAW_CREDENTIALS,
DELEGATE,
MERGE,
CANCEL_PENDING
Example:

"CLAIM_REWARDS"

yieldId
string
required

Yield ID this action belongs to

Example:

"ethereum-eth-lido-staking"

address
string
required

User wallet address

Example:

"0x1234..."

amount
string | null
required

Amount involved in the action, in human-readable token units (not the smallest denomination).

Example:

"1.0"

amountRaw
string | null
required

Raw smallest-denomination amount (full precision)

Example:

"1000000000000000000"

amountUsd
string | null
required

USD value of the amount

Example:

"1500.50"

transactions
object[]
required

Array of transactions for this action

executionPattern
enum<string>
required

Transaction execution pattern - synchronous (submit one by one, wait for each), asynchronous (submit all at once), or batch (single transaction with multiple operations)

Available options:
synchronous,
asynchronous,
batch
Example:

"synchronous"

rawArguments
object | null
required

Validated and normalized arguments used to construct this action

createdAt
string<date-time>
required

When the action was created

completedAt
string<date-time> | null
required

When the action was completed

status
enum<string>
required

Current status of the action

Available options:
CANCELED,
CREATED,
WAITING_FOR_NEXT,
PROCESSING,
FAILED,
SUCCESS,
STALE
isEncrypted
boolean

True when the action amount is encrypted (an encrypted amount or batch position handle); use it to identify confidential actions. encryptedAmount holds the handle. amount, amountRaw and amountUsd are null when the request left amount out, and "0", "0" and "0.00" when it sent amount "0" (amountUsd stays null when the token has no USD price).

encryptedAmount
string

ERC-7984 handle of this yield's amount. Enter and batched exit: this vault's handle from encryptedLegAmounts (bound to the router), not the submitted encryptedAmount. Instant exit: the submitted encryptedAmount. Cancel: the batch position handle. Set only when isEncrypted is true.

Example:

"0x5f3a0000000000000000000000000000000000000000000000000000000000c401"

entryReserveEstimate
string

Total SOL side-reserve required for enter validation: account rent plus ~0.005 SOL priority-fee buffer. For max native-SOL deposit use balance minus this value; do not also subtract amount. Only returned on the enter action creation response; omitted for exits, manage actions, and action retrieval.

events
object[]

Protocol-side events associated with this action, such as a redemption settlement executed by the protocol after the action completed. Omitted when there are none.