Query nft by account
1. Request Url
https://{host}/gt/swap/path/v1/getOwnedAssets
2. Request Param
Parameter name
Is it necessary
description
owner
Y
User wallet address
page
Y
The current number of pages(default: 1)
pageSize
Y
Number each page(default: 50)
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
{
"equipmentNo": "",
"owner": "",
"pageSize": 0,
"sessionUuid": "",
"sourceFlag": "",
"sourceType": "",
"userNo": ""
}
4.Response Data
{
"data": {
"assets": [
{
"canSell": "",
"contractAddr": "",
"imageUrl": "",
"mainnet": "",
"name": "",
"paymentInfo": {},
"platformId": "",
"tokenId": ""
}
]
},
"resCode": "800",
"resMsg": "success"
}
Copy link