SpotBuildResponse
Full build response for spot swap (account provided).
currencyIn objectrequired
Input currency info
Input currency info
currencyOut objectrequired
Output currency info
Output currency info
quotes object[]required
Candidate routes, best output first. Execute exactly one.
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").
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.
{
"currencyIn": {},
"currencyOut": {},
"quotes": [
{
"aggregator": "string",
"tradeInput": 0,
"tradeOutput": 0,
"tx": {
"to": "0x87870Bca3F3fD6335C3F4ce8392D69350B4fA4E2",
"data": "0x617ba037000000000000000000000000c02aaa39b2",
"value": "0",
"description": "string"
}
}
],
"permissionTxns": [
{
"to": "string",
"data": "string",
"value": "0",
"description": "string",
"spender": "string"
}
]
}