MarginBuildResponse
Full build response (account provided). Includes transaction calldata.
Protocol identifier
quotes object[]required
Candidate routes, best output first. Execute exactly one.
deltas object
Aggregator source
Trade input amount
Trade output amount
deltas object
Balance deltas
Balance deltas
tx object
An EVM transaction ready to sign and broadcast. Send to, data and value as-is; do not re-encode them.
Target contract address
0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2Encoded calldata
0x617ba037000000000000000000000000c02aaa39b2ETH 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").
rateImpact object[]
Projected interest-rate impact per market for THIS quote (its own trade amounts). Omitted 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
permissionTxns object[]required
Approvals needed for this specific quote. Most integrators should use the deduplicated envelope-level actions.permissions instead.
Target contract address
Encoded calldata
ETH value
0Human-readable description of the approval (e.g. "Approve borrow for AAVE_V3", "Approve ERC20")
ERC-20 approve spender (x-chain permissions). Match it against the selected quote's approvalTarget — several bridges can share one spender, so do not match by description.
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": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
"data": "0x617ba037000000000000000000000000c02aaa39b2",
"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
}
}
]
}
],
"permissionTxns": [
{
"to": "string",
"data": "string",
"value": "0",
"description": "string",
"spender": "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
}
}
]
}