Skip to main content

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...abcd
    datastringrequired

    Encoded calldata

    Example: 0xabcdef...
    valuestringrequired

    ETH value to send with the transaction

    Example: 0
    descriptionstring

    Human-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
  • Array [
  • tostringrequired

    Target contract address

    datastringrequired

    Encoded calldata

    valuestringrequired

    ETH value

    Example: 0
    descriptionstring

    Human-readable description of the approval (e.g. "Approve borrow for AAVE_V3", "Approve ERC20")

  • ]
  • SpotBuildResponse
    {
    "currencyIn": {},
    "currencyOut": {},
    "quotes": [
    {
    "aggregator": "string",
    "tradeInput": 0,
    "tradeOutput": 0,
    "tx": {
    "to": "0x1234...abcd",
    "data": "0xabcdef...",
    "value": "0",
    "description": "string"
    }
    }
    ],
    "permissionTxns": [
    {
    "to": "string",
    "data": "string",
    "value": "0",
    "description": "string"
    }
    ]
    }