Manage an Earn position for a given owner’s Earn Account.
The owner is the main wallet address that owns and controls the Earn Account. It is not the Earn Account address itself.
Venue Types:
If DEPOSIT is selected for action, tokens will be deposited into the selected venue address from the Earn Account associated with the owner wallet.
If WITHDRAW is selected for action, tokens will be withdrawn from the selected venue address back into the Earn Account associated with the owner wallet.
A fee can be configured. This fee is deducted from the total amount. It can be expressed as a FIXED amount or a PERCENTAGE of amount.
The transaction can be gas-sponsored by an arbitrary wallet address which will sign, submit and pay the required gas for the transaction. If gas_sponsorship is 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) where the sender of the transaction can be set.
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. 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.