Skip to main content
POST
Execute swap

Authorizations

x-api-key
string
header
required

Your Zet API key. Contact zetdotmoney@gmail.com to obtain your keys.

Body

application/json
quoteId
string
required
Example:

"qt_01H8X5..."

walletId
string

Zet wallet to execute the swap from. Required for custodial flow.

Example:

"wal_01H8X3..."

sourceAddress
string

External wallet address. For non-custodial flow, the user must approve and sign the swap transactions themselves — use the returned approvalData and transactionData.

Example:

"0xabc..."

reference
string
Example:

"swap_001"

callbackUrl
string<uri>

Response

Swap initiated.

success
boolean
Example:

true

data
object