SpotBuildResponse
Full build response for spot swap (account provided).
currencyIn objectrequired
Input currency info
property name*any
Input currency info
currencyOut objectrequired
Output currency info
property name*any
Output currency info
quotes object[]required
Array [
aggregatorstring
tradeInputnumber
tradeOutputnumber
tx object
tostringrequired
Target contract address
Example:
0x1234...abcddatastringrequired
Encoded calldata
Example:
0xabcdef...valuestringrequired
ETH value to send with the transaction
Example:
0]
permissionTxns object[]required
Array [
tostringrequired
Target contract address
datastringrequired
Encoded calldata
valuestringrequired
ETH value
infostring
Human-readable description of the approval
]
SpotBuildResponse
{
"currencyIn": {},
"currencyOut": {},
"quotes": [
{
"aggregator": "string",
"tradeInput": 0,
"tradeOutput": 0,
"tx": {
"to": "0x1234...abcd",
"data": "0xabcdef...",
"value": "0"
}
}
],
"permissionTxns": [
{
"to": "string",
"data": "string",
"value": "string",
"info": "string"
}
]
}