Skip to main content
POST
YieldCreateExitAction generates unsigned withdrawal transaction calldata for a yield position.

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

Market ID from YieldGetMarkets

userWalletAddress
string
required

Wallet address of the user performing the action

args
object

Optional market-specific arguments (e.g. referral codes, slippage)

Response

OK

payload
object
required

JSON object containing unsigned transaction payloads