v1
latestOpenAPI 3.1.02026-07-24223580832.9 KBlendborrow
Borrow
Initiates a borrowing transaction for a specified amount of tokens from supported lending markets (Aave V2/V3, Compound V2/V3), allowing configuration of asset, amount, interest rate mode, on-behalf-of address, and gas parameters for an optimized borrowing process.
💡 Compute Unit Value: 225 (Fixed)
post/defi/v1/lendborrow/borrow
Request body
Example request
{
"lendborrowId": "1000",
"asset": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"amount": "10000",
"interestRateMode": "1",
"onBehalfOf": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
"from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
"gas": "100000",
"gasPriority": "low",
"enableFee": false,
"market": "USDC",
"marketId": "0x3b3769cfca57be2eaed03fcc5299c25691b77781a1e124e7a8d520eb9a7eabb5",
"to": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402"
}Response
Successful response
Example response
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x829bFB482331b9Dc2BEcb5483ecA79c0578c3A45",
"to": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
"value": "0",
"gas": "408298",
"estimationCheck": true,
"data": "0xa415bcad00000000000000000000000065afadd39029741b3b8f0756952c74678c9cec93000000000000000000000000000000000000000000000000000000000000006400000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000829bfb482331b9dc2becb5483eca79c0578c3a45",
"referenceId": "4fab595487904774a12c2555d9ba02a1"
}
}