MarginBuildResponse
Full build response (account provided). Includes transaction calldata.
Protocol identifier
quotes object[]required
deltas object
Aggregator source
Trade input amount
Trade output amount
deltas object
Balance deltas
Balance deltas
tx object
Target contract address
0x1234...abcdEncoded calldata
0xabcdef...ETH value to send with the transaction
0Human-readable label. For alternatives, this is the aggregator name (e.g. "Paraswap"). For transactions, describes the setup action (e.g. "Switch e-mode to 1").
permissionTxns object[]required
Target contract address
Encoded calldata
ETH value
0Human-readable description of the approval (e.g. "Approve borrow for AAVE_V3", "Approve ERC20")
rateImpact object[]nullable
Projected interest-rate impact per market. Single-market actions produce 1 entry; loop actions produce 2. Null if IRM data is unavailable.
Market identifier (format: lender:chainId:address)
AAVE_V3:8453:0x4200000000000000000000000000000000000006utilization objectrequired
Utilization ratio (0–1)
Current value
Projected value after the action
borrowRate objectrequired
Borrow APR (%)
Current value
Projected value after the action
depositRate objectrequired
Deposit/supply APR (%)
Current value
Projected value after the action
{
"lender": "string",
"quotes": [
{
"deltas": {
"aggregator": "string",
"tradeInput": 0,
"tradeOutput": 0,
"deltas": {}
},
"tx": {
"to": "0x1234...abcd",
"data": "0xabcdef...",
"value": "0",
"description": "string"
}
}
],
"permissionTxns": [
{
"to": "string",
"data": "string",
"value": "0",
"description": "string"
}
],
"rateImpact": [
{
"marketUid": "AAVE_V3:8453:0x4200000000000000000000000000000000000006",
"utilization": {
"current": 0.85,
"projected": 0.83
},
"borrowRate": {
"current": 3.2,
"projected": 3
},
"depositRate": {
"current": 2.1,
"projected": 1.9
}
}
]
}