Skip to main content
POST
Child Address Execute

授权

x-api-key
string
header
必填

路径参数

walletId
string
必填
示例:

"YOUR_WALLET_ID"

addressId
string
必填
示例:

"ADDRESS_ID"

请求体

application/json
fromAssetId
string
必填

The asset ID to swap from.

示例:

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

toAssetId
string
必填

The asset ID to swap to.

示例:

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

amount
string
必填

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

示例:

"1000"

amountSide
enum<string>
默认值:source

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

可用选项:
source,
target
示例:

"source"

recipientAddress
string

The external address you want to swap to.

order
enum<string>
默认值:RECOMMENDED

Quote preference.

可用选项:
FASTEST,
CHEAPEST,
RECOMMENDED,
NO_SLIPPAGE
示例:

"RECOMMENDED"

响应

200 - application/json

200 - External Recipient Address / 200 - Recipient Master Wallet

data
object
message
string
示例:

"Swap transaction created successfully"

statusCode
number
示例:

200