Place an order
1. Request Url
https://{host}/gt/swap/path/v1/placeOrder
2. Request Param
Parameter name
Is it necessary
description
depositCoinCode
Y
buy:Deposit coinCode sell: nft contract address
fromTokenChain
Y
buy:not required sell: nft main network
nftLogoUrl
Y
buy:not required sell:nft Image
nftName
Y
buy:not required sell:nft Name
paymentContract
Y
buy: not required sell:Base currency contract address
orderSide
buy---1 sell---0
platformId
Y
Platfrom Id
receiveCoinCode
Y
buy:NFT Id sell: receive coinCode
refundAddr
Y
Refund address
tokenId
Y
buy:not required sell:nft tokenId
userAddr
Y
User address
equipmentNo
N
device ID
sessionUuid
N
User's unique login ID sessionId
sourceFlag
N
The order source is used to identify which platform created the order and needs to be negotiated with SWFT BlockChain
sourceType
N
Request source device (IOS, Android, h5)
userNo
N
userNo
3.Request Example
{
"depositCoinCode": "",
"equipmentNo": "",
"fromTokenChain": "",
"nftLogoUrl": "",
"nftName": "",
"orderSide": "",
"paymentContract": "",
"platformId": "",
"receiveCoinCode": "",
"refundAddr": "",
"sessionUuid": "",
"sourceFlag": "",
"sourceType": "",
"tokenId": "",
"userAddr": "",
"userNo": ""
}
4.Response Data
{
"data": {
"depositCoinAmt": "",
"depositCoinCode": "",
"destinationAddr": "",
"equipmentNo": "",
"isNft": "",
"nftId": "",
"nftLogoUrl": "",
"nftName": "",
"orderId": "",
"orderSide": "",
"orderStatus": "",
"platformAddr": "",
"receiveCoinAmt": "",
"receiveCoinCode": "",
"refundAddr": "",
"router": "",
"txInfo": {},
"userAddr": ""
},
"resCode": "800",
"resMsg": "success"
}
Copy link