Skip to main content
POST
Plan a multi-swap
Multi-swap planning is available. Zaps are not enabled yet; check capabilities before showing a deposit action.
In-app integration

Authorizations

x-api-key
string
header
required

Server-side key created in an authenticated developer workspace. Builder codes are public attribution, not credentials.

Body

application/json

Plan multi-swap

action
enum<string>
required
Available options:
multi-plan
input
object
required

Response

Result for the selected action.

chainId
enum<integer>
required
Available options:
4663
execution
enum<string>
required
Available options:
sequential
atomic
enum<boolean>
required
Available options:
false
payer
string
required
Pattern: ^0x[0-9a-fA-F]{40}$
recipient
string
required
Pattern: ^0x[0-9a-fA-F]{40}$
legs
object[]
required
Required array length: 1 - 16 elements
swapCount
integer
required
allocation
string
required
partialCompletion
string
required