Explorer

Get NFT Portfolio

Get the details of all the NFTs owned by the authenticated user across all networks.

GET
/api/oc/v1/portfolio/nft

Authorization

AuthorizationRequiredBearer <token>

In: header

curl -X GET "https://sandbox-api.okto.tech/api/oc/v1/portfolio/nft" \
  -H "Authorization: Bearer <token>"

Fetched

{
  "status": "success",
  "data": {
    "count": 2,
    "details": [
      {
        "caip_id": "eip155:137",
        "network_name": "POLYGON",
        "entity_type": "ERC1155",
        "collection_address": "0x127e47aba094a9a87d084a3a93732909ff031419",
        "collection_name": "Genius Token & NFT Collections",
        "nft_id": "0",
        "image": "",
        "quantity": "2.000000000000000000",
        "token_uri": "https://nft.gnus.ai/{id}",
        "description": "",
        "nft_name": "",
        "explorer_smart_contract_url": "https://polygonscan.com/search?f=0&q=0x127e47aba094a9a87d084a3a93732909ff031419",
        "collection_image": ""
      }
    ]
  }
}