Skip to main content
POST
/
exchanges
/
multi
/
{multiId}
/
tx
/
build
Build multi exchange batch transaction data
curl --request POST \
  --url https://api-partner.houdiniswap.com/v2/exchanges/multi/{multiId}/tx/build \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "sender": "<string>",
  "houdiniIds": [
    "<string>"
  ]
}
'
{
  "multiId": "<string>",
  "chain": "<string>",
  "transactions": [
    {
      "houdiniIds": [
        "<string>"
      ],
      "txData": {
        "userOpHash": "<string>",
        "to": "<string>",
        "data": "<string>",
        "value": "<string>",
        "chainId": 123,
        "tokenAmount": "<string>"
      }
    }
  ],
  "depositNeeded": "<string>",
  "saCurrentBalance": "<string>"
}

Authorizations

Authorization
string
header
required

Path Parameters

multiId
string
required

The multi exchange group ID

Maximum string length: 64

Body

application/json

Request body for POST /exchanges/multi/{multiId}/tx/build

sender
string
required

Wallet address that will sign and fund the transaction(s)

houdiniIds
string[]

Optional subset of orders to build for; defaults to all orders in the group

Maximum array length: 50

Response

Success

multiId
string
required
chain
string
required

Chain kind of the from token (e.g. "solana", "evm")

transactions
object[]
required
depositNeeded
string

How much more native ETH (wei) the SA needs before submission; "0" means already funded

saCurrentBalance
string

Current SA native balance in wei