lendborrow
Migrate
Facilitate the migration of your positions between different lending protocols. This endpoint enables you to seamlessly transfer your assets from one protocol to another, ensuring continuity of your positions while optimizing gas usage and minimizing downtime.
💡 Compute Unit Value: 105 (Fixed)
post/defi/v1/lendborrow/migrate
Request
- Base URLhttps://svc.blockdaemon.com
- URLhttps://svc.blockdaemon.com/defi/v1/lendborrow/migrate
- AuthAPI key in header X-API-Key
Request body
Example request
{
"lendborrowId": "1200",
"assets": "0x5f98805a4e8be255a32880fdec7f6728c6568ba0,0x9f8f72aa9304c8b593d555f12ef6589cc3a579a2",
"from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
"gas": "100000",
"enableFee": false,
"simulate": false
}Response
Successful response
Example response
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x356dB816602c85e2075774bB77D13995c8Bab023",
"to": "0xb748952c7bc638f31775245964707bcc5ddfabfc",
"estimationCheck": true,
"value": "0",
"gas": "329000",
"data": "0x3698d492000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000010000000000000000000000006b175474e89094c44da98b954eedeac495271d0f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
"referenceId": "76137704aa884a90b6a47082bc65e735"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.