Skip to main content

Withdraw

GET 

/v1/actions/lending/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. When on-chain deposit data is available and amount covers the full deposit balance, the API uses protocol-level max-withdraw mechanisms automatically (e.g. maxUint256 or share-based redemption). If isAll=true but amount is less than the deposit balance, the API falls back to a partial withdrawal to avoid reverts.

Request

Responses

Transaction calldata and approvals for withdraw