lendborrow
Bundle Actions
Combine multiple lending and borrowing operations into one atomic blockchain transaction. This endpoint bundles several protocol actions—each defined by its specific call data—so that they all execute together (or not at all). The approach improves gas efficiency and minimizes the risk of partial execution, making it ideal for complex, multi-step transactions.
💡 Compute Unit Value: 45 (Fixed)
post/defi/v1/lendborrow/bundleactions
Request
- Base URLhttps://svc.blockdaemon.com
- URLhttps://svc.blockdaemon.com/defi/v1/lendborrow/bundleactions
- AuthAPI key in header X-API-Key
Request body
Example request
{
"lendborrowId": "1300",
"actions": "ACTION_SUPPLY_NATIVE_TOKEN",
"data": "0x40e53eb7000000000000000000000000000000000000000000000000000000000016e360",
"from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
"gas": "100000",
"gasPriority": "low",
"market": "USDC",
"enableFee": false,
"simulate": false
}Response
Successful response
Example response
{
"status": 200,
"msg": "success",
"data": {
"chainId": "1",
"from": "0x6Fb447Ae94F5180254D436A693907a1f57696900",
"to": "0xa397a8C2086C554B531c02E29f3291c9704B00c7",
"value": "123000000",
"gas": "500000",
"estimationCheck": true,
"data": "0x555029a6000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000002414354494f4e5f535550504c595f4e41544956455f544f4b454e000000000000414354494f4e5f535550504c595f4e41544956455f544f4b454e0000000000000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000060000000000000000000000000c3d688b66703497daa19211eedff47f25384cdc30000000000000000000000006fb447ae94f5180254d436a693907a1f576969000000000000000000000000000000000000000000000000000000000005f5e1000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000c3d688b66703497daa19211eedff47f25384cdc30000000000000000000000006fb447ae94f5180254d436a693907a1f5769690000000000000000000000000000000000000000000000000000000000015ef3c0",
"referenceId": "4fab595487904774a12c2555d9ba02a1"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.