Deposit into or withdraw from a yield venue.
Use DEPOSIT to move tokens from the Earn Account into a vault, Aave market, or Pendle PT position. Use WITHDRAW to move tokens back from a venue into the Earn Account.
Venue types:
VAULT: ERC-4626 vaults (see /vaults for available options)AAVE: Aave lending pools (see /aave_markets for available options)PENDLE_PT: Pendle Principal Tokens (see /pendle_markets for available options)Fees: A fee can be configured and deducted from the transaction amount (not supported for PENDLE_PT):
FIXED: A fixed token amount (e.g., 0.1 means 0.1 tokens)PERCENTAGE: A percentage of the amount (e.g., 1.5 means 1.5%)PERFORMANCE: A percentage of realized profit (withdrawals only)Gas sponsorship: Set gas_sponsorship=true to receive EIP-712 typed data. Owner signs the typed data, then submit to /gas_sponsorship/prepare.
Request model for the unified manage endpoint.
Inherits from EarnManageParams and adds context fields (owner, chain, etc).
The earn venue.
Whether you are depositing into or withdrawing from the given Earn venue.
DEPOSIT, WITHDRAW Amount of the underlying asset to act on (deposit or withdraw). For VAULT, this is the vault's underlying token; for AAVE, this is the Aave reserve asset; for PENDLE_PT, this is the amount of token to spend (DEPOSIT) or PT to sell (WITHDRAW). Provide as a decimal in token units (not wei); must be > 0.
x > 00.1
The primary wallet address that owns and controls the Earn Account.
Blockchain network
base, ethereum, arbitrum Action type identifier for manage operations.
"V2_MANAGE"Optionally request gas sponsorship. If set to true, EIP-712 typed data will be returned that must be signed by the owner and submitted to the 'Prepare gas-sponsored transaction' endpoint (/gas_sponsorship/prepare).
Optional fee configuration. If provided, a fee will be applied to the transaction amount and sent to the specified recipient address. The fee can be specified as a percentage of the transaction amount or as a fixed token amount.