Get the details of all the NFT's owned by the user using the user_id
.
Headers
x-api-key
: string
The S2S API Key provided by Okto.
Query Parameters
user_id
: string
The user id of the user whose portfolio data is to be fetched.
Code
curl -X GET '${baseUrl}/s2s/api/v1/portfolio/nft?user_id=3295b42e-b74e-4cf6-9b6f-9e588405ec18'
-H 'accept: application/json'
-H 'x-api-key: API_KEY'
Response
{
"status": "success",
"data": {
"count": 2,
"nfts": [
{
"explorer_smart_contract_url": "https://explorer.aptoslabs.com/0x171e643e8e8dabc66b838b9055dbdf88647cf6601b164f5987f50a497bedfbe1/0x171e643e8e8dabc66b838b9055dbdf88647cf6601b164f5987f50a497bedfbe1?network=testnet",
"description": "Lets check",
"type": "NFT",
"collection_id": "267e0396-1148-51e2-8554-708f40c64e73",
"collection_name": "super avengers",
"nft_token_id": "0xebed26b4575706f5d650e8edb3533ffa54f3499fdddeb4b1ade18337ecf8c20f",
"token_uri": "ipfs://QmVFPvu8aeJHXyNVxpfftVHaKjRsbtH6dXWscJ2TukM3xi",
"id": "e3b6db62-eb6e-5e59-b5ee-d67e239124b4",
"image": "",
"collection_address": "0x171e643e8e8dabc66b838b9055dbdf88647cf6601b164f5987f50a497bedfbe1",
"collection_image": "super.avengers.net/vk",
"network_name": "APTOS_TESTNET",
"network_id": "d6fd4680-c28d-37b2-994e-b9d3d4026f91",
"nft_name": "Starting again"
},
{
"explorer_smart_contract_url": "https://explorer.aptoslabs.com/object/0x171e643e8e8dabc66b838b9055dbdf88647cf6601b164f5987f50a497bedfbe1?network=mainnet",
"description": "Lets check",
"type": "NFT",
"collection_id": "267e0396-1148-51e2-8554-708f40c64e73",
"collection_name": "super avengers",
"nft_token_id": "0x7380caecd949b0283e1e73d9231c53512a7f8d8e106d180270d89c8ee9786156",
"token_uri": "ipfs://QmVFPvu8aeJHXyNVxpfftVHaKjRsbtH6dXWscJ2TukM3xi",
"id": "46b95693-4a95-517e-aa3d-7d1439f9a86e",
"image": "",
"collection_address": "0x171e643e8e8dabc66b838b9055dbdf88647cf6601b164f5987f50a497bedfbe1",
"collection_image": "super.avengers.net/vk",
"network_name": "APTOS_TESTNET",
"network_id": "d6fd4680-c28d-37b2-994e-b9d3d4026f91",
"nft_name": "Mint NFT for Stan"
}
]
}
}