XChainBuildResponse
Full build response for cross-chain swap (account provided).
currencyIn objectrequired
Input currency info (source chain)
Input currency info (source chain)
currencyOut objectrequired
Output currency info (destination chain)
Output currency info (destination chain)
quotes object[]required
Estimated bridging duration in seconds
This bridge's deposit contract — the ERC-20 approve spender
False when the existing on-chain allowance already covers the input amount
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
ERC-20 approves per bridge deposit contract; each is labeled with the bridge name — execute only the one matching the chosen quote
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": [
{
"bridge": "string",
"tradeInput": 0,
"tradeOutput": 0,
"estimatedDuration": 0,
"approvalTarget": "string",
"approvalRequired": true,
"tx": {
"to": "0x1234...abcd",
"data": "0xabcdef...",
"value": "0",
"description": "string"
}
}
],
"permissionTxns": [
{
"to": "string",
"data": "string",
"value": "0",
"description": "string",
"spender": "string"
}
]
}