Skip to main content
POST
YieldCreateExitAction returns unsigned exit-action transaction payloads.

Overview

YieldCreateExitAction returns the unsigned transaction payload needed to withdraw from a DeFi yield position. It is the counterpart to YieldCreateEnterAction. Use this endpoint to build withdrawal UIs or construct exit calldata for Trails routes. For React apps, the composable action builders handle this automatically.

Request Parameters

Response

Returns payload containing unsigned transaction data:

Examples

Withdraw from an Aave lending position

Withdraw a specific amount

Use args to pass withdrawal parameters for markets that require them (e.g. partial withdrawals):

Common pattern: check balance then exit

See also

Body

application/json
earnMarketId
string
required
userWalletAddress
string
required
args
object

Response

OK

action
object
required