Skip to main content
POST
Master Wallet Execute

Autorisations

x-api-key
string
header
requis

Paramètres de chemin

walletId
string
requis
Exemple:

"YOUR_WALLET_ID"

Corps

application/json
fromAssetId
string
requis

The asset ID to swap from.

Exemple:

"eda105b9-9471-4149-adb3-7dbf285ec0ab"

toAssetId
string
requis

The asset ID to swap to.

Exemple:

"84c8ad33-1450-4d61-9f8f-f0505039f2ec"

amount
string
requis

The source amount when amountSide is source, or the target amount when amountSide is target.

Exemple:

"1000"

amountSide
enum<string>
défaut:source

Use source when amount is the asset amount to spend. Use target when amount is the destination asset amount to receive.

Options disponibles:
source,
target
Exemple:

"source"

recipientAddress
string

The external address you want to swap to.

order
enum<string>
défaut:RECOMMENDED

Quote preference.

Options disponibles:
FASTEST,
CHEAPEST,
RECOMMENDED,
NO_SLIPPAGE
Exemple:

"RECOMMENDED"

Réponse

200 - application/json

200 - External Recipient Address / 200 - Recipient Master Wallet

data
object
message
string
Exemple:

"Swap transaction created successfully"

statusCode
number
Exemple:

200