Lending (Actions)
Deposit, withdraw, borrow, repay, e-mode, enable-collateral
📄️ List actions
Returns the grouped list of available action endpoints.
📄️ Deposit
Build calldata for depositing into a lending pool. Use `mode=direct` (default) for raw protocol interaction or `mode=proxy` for 1delta composer. Identify the market via `marketUid` (format: `lender:chainId:address`). Approval transactions are automatically filtered: if the user already has sufficient allowances, `permissions`/`permissionTxns` will be empty. Pass `simulate=true` to include projected post-trade metrics.
📄️ Deposit (simulate)
Build calldata for depositing into a lending pool and simulate post-trade state. Same parameters as GET. Optionally send a JSON body with current portfolio state (`balanceData`, `aprData`, `positions`) to receive projected post-trade metrics in the `simulation` field — if omitted, the API fetches balances on-chain automatically. Use the data returned by the user-data endpoints directly — always include `positions` for accurate health-factor and borrow-capacity projections.
📄️ Withdraw
Build calldata for withdrawing from a lending pool. Identify the market via `marketUid` (format: `lender:chainId:address`). Approval transactions are automatically filtered: if the user already has sufficient allowances, `permissions`/`permissionTxns` will be empty. Pass `simulate=true` to include projected post-trade metrics.
📄️ Withdraw (simulate)
Build calldata for withdrawing from a lending pool and simulate post-trade state. Same parameters as GET. Optionally send a JSON body with current portfolio state (`balanceData`, `aprData`, `positions`) to receive projected post-trade metrics in the `simulation` field — if omitted, the API fetches balances on-chain automatically. Use the data returned by the user-data endpoints directly — always include `positions` for accurate health-factor and borrow-capacity projections.
📄️ Borrow
Build calldata for borrowing from a lending pool. Identify the market via `marketUid` (format: `lender:chainId:address`). Approval transactions are automatically filtered: if the user already has sufficient allowances, `permissions`/`permissionTxns` will be empty. Pass `simulate=true` to include projected post-trade metrics.
📄️ Borrow (simulate)
Build calldata for borrowing from a lending pool and simulate post-trade state. Same parameters as GET. Optionally send a JSON body with current portfolio state (`balanceData`, `aprData`, `positions`) to receive projected post-trade metrics in the `simulation` field — if omitted, the API fetches balances on-chain automatically. Use the data returned by the user-data endpoints directly — always include `positions` for accurate health-factor and borrow-capacity projections.
📄️ Repay
Build calldata for repaying a loan. Identify the market via `marketUid` (format: `lender:chainId:address`). Approval transactions are automatically filtered: if the user already has sufficient allowances, `permissions`/`permissionTxns` will be empty. Pass `simulate=true` to include projected post-trade metrics.
📄️ Repay (simulate)
Build calldata for repaying a loan and simulate post-trade state. Same parameters as GET. Optionally send a JSON body with current portfolio state (`balanceData`, `aprData`, `positions`) to receive projected post-trade metrics in the `simulation` field — if omitted, the API fetches balances on-chain automatically. Use the data returned by the user-data endpoints directly — always include `positions` for accurate health-factor and borrow-capacity projections.
📄️ Switch e-mode
Build calldata for switching the efficiency mode on Aave V3.
📄️ Enable/disable collateral
Build calldata for toggling an asset as collateral. Identify the market via `marketUid` (format: `lender:chainId:address`).
📄️ Repay with aToken
Build calldata for repaying a loan using aTokens on Aave V3. Identify the market via `marketUid` (format: `lender:chainId:address`).