POST /borrow
Borrow an Asset - /borrow
/borrow
Route
POST https://api.pods.finance/v1/borrow
Description This route is used to borrow a certain asset by providing collateral.
Request
Body The request should have the following parameters:
amount
: The amount of the asset to borrow (e.g.,100
).asset
: The type of asset to borrow (e.g.,"DAI"
).collateral_type
: The type of asset used as collateral (e.g.,"ETH"
).collateral_amount
: The amount of collateral to provide (e.g.,1
).receiver_address
: The address that the borrowed amount should be sent.
The amount and collateral_amount should contians the asset's decimals. (E.g: 1 USDC = 100000. 6 decimals)
Example
Responses
Success (200 OK) If the request is successful, the API will return a status code of 200 with the following response structure.
Example Response
The destination address will be the address that you should transfer the collateral_amount to
Last updated