lendborrow

Get Max Amounts

Calculate the maximum amounts you can withdraw or borrow for a specific asset. Based on your collateral and current market conditions, this endpoint determines your borrowing and withdrawal limits, empowering you to manage risk and plan your next steps effectively.

💡 Compute Unit Value: 110 (Fixed)

get/defi/v1/lendborrow/getmaxamounts

Request

  • Base URL
    https://svc.blockdaemon.com
  • URL
    https://svc.blockdaemon.com/defi/v1/lendborrow/getmaxamounts
  • Auth
    API key in header X-API-Key

Query parameters

lendborrowId'1300' | '1302'

The unique ID to specify the lending and borrowing protocol for routing relevant queries or transactions.

Example:1300
addressstring required

Public address of the user to retrieve max amounts for.

Example:0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402
assetstring required

Token's address for which the details are required.

Example:0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2
marketstring

Standard market choice like USDC or WETH. Defaults to USDC if not specified.

Example:USDC

Response

Successful response

statusnumber

Numeric status code indicating success or failure of the API call

msgstring

Human-readable message describing the API result or error

Example response

{
  "status": 200,
  "msg": "success",
  "data": {
    "maxWithdrawalAmount": "0.0183",
    "maxBorrowableAmount": "52.9195"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.