getNFTFavouriteListByUser

Get all the favourite NFTs from the user favourite list.

Sample query

query getNFTFavouriteListByUser(
  $orgID: UUID1!
  $offset: Int
  $limit: Int
  $searchKey: String
  $filters: SavedNFTFilterInput
  $buyerAddress: String
) {
  getNFTFavouriteListByUser(
    orgId: $orgID
    offset: $offset
    limit: $limit
    searchKey: $searchKey
    filter: $filters
    buyerAddress: $buyerAddress
  ) {
    data {
      id
      title
      status
      network
      networkID
      tokenURI
      balance
      nftTokenId
      tokenType
      timeLastUpdated
      description
      mintedAt
      listedAt
      contractAddress
      contractName
      artistName
      favouriteCount
      owner
      latestOffer {
        price {
          value
          unit
          type
          __typename
        }
        __typename
      }
      listedOrderInfo {
        id
        listedCurrency {
          contractAddress
          __typename
        }
        price {
          value
          unit
          type
          __typename
        }
        __typename
      }
      isBuyNowEnabled
      isMakeOfferEnabled
      isOfferExist
      price {
        buyNowPrice {
          value
          unit
          type
          __typename
        }
        lastPurchasedPrice {
          value
          unit
          type
          __typename
        }
        makeOfferHighestPrice {
          value
          unit
          type
          __typename
        }
        makeOfferLatestPrice {
          value
          unit
          type
          __typename
        }
        __typename
      }
      metadata {
        name
        image
        description
        animationURL
        openSeaImageURL
        __typename
      }
      __typename
    }
    totalCount
    __typename
  }
}

Sample variable

{
  "orgID": "f2f5c627-5421-4c40-9913-edfd09dd98b3",
  "filters": "price_low_to_high",
  "buyerAddress": "0x5f6FD7dBd82cD6De4a25913Ee92E79863f00db33",
  "searchKey": ""
}

Sample response

{
  "data": {
    "getNFTFavouriteListByUser": {
      "data": [
        {
          "id": "100",
          "title": "Whisky 5308",
          "status": "OPEN_FOR_SALE",
          "network": "Goerli Testnet",
          "networkID": "c41db347-0ee3-4212-943a-ca213b8e0ea8",
          "tokenURI": "https://arweave.net/L7mJ1pUGEKNUH_tS4uAlaLSSxQTZWT4ONSJtb9NAORQ",
          "balance": "",
          "nftTokenId": "af104b4a-d759-4fb0-9c40-7a5e12ebc3b7",
          "tokenType": "ERC721",
          "timeLastUpdated": null,
          "description": " A short copy on the collections of the whisky exchange can be posted in one to two lines. Posuere mattis urna pretium morbi ac scelerisque. Purus at nullam quis nunc tortor. Posuere mattis urna pretium morbi ac scelerisque.",
          "mintedAt": "2023-02-16T09:40:04Z",
          "listedAt": "2023-02-16T09:40:04Z",
          "contractAddress": "0x5ddc04380a1868a6101eebce4097f1e843ad931e",
          "contractName": "",
          "artistName": "Adam Pendleton",
          "favouriteCount": 1,
          "owner": "0x5d3c1143C2B6dc98ff95c76beAb17C8B1D6c337F",
          "latestOffer": {
            "price": [
              {
                "value": 67.1652,
                "unit": "USD",
                "type": "FIAT",
                "__typename": "NFTPrice"
              },
              {
                "value": 0.04,
                "unit": "WETH",
                "type": "CRYPTO",
                "__typename": "NFTPrice"
              }
            ],
            "__typename": "Order"
          },
          "listedOrderInfo": null,
          "isBuyNowEnabled": true,
          "isMakeOfferEnabled": true,
          "isOfferExist": null,
          "price": {
            "buyNowPrice": null,
            "lastPurchasedPrice": null,
            "makeOfferHighestPrice": [
              {
                "value": 67.1652,
                "unit": "USD",
                "type": "FIAT",
                "__typename": "NFTPrice"
              },
              {
                "value": 0.04,
                "unit": "WETH",
                "type": "CRYPTO",
                "__typename": "NFTPrice"
              }
            ],
            "makeOfferLatestPrice": [
              {
                "value": 67.1652,
                "unit": "USD",
                "type": "FIAT",
                "__typename": "NFTPrice"
              },
              {
                "value": 0.04,
                "unit": "WETH",
                "type": "CRYPTO",
                "__typename": "NFTPrice"
              }
            ],
            "__typename": "Price"
          },
          "metadata": {
            "name": "Whisky 5308",
            "image": "https://gateway.arweave.net/L60zx8c9Tzjpie_uo_9NHp8Yy_DT0LcnBlzmJN0-TMo",
            "description": " A short copy on the collections of the whisky exchange can be posted in one to two lines. Posuere mattis urna pretium morbi ac scelerisque. Purus at nullam quis nunc tortor. Posuere mattis urna pretium morbi ac scelerisque.",
            "animationURL": null,
            "openSeaImageURL": "",
            "__typename": "ERC721Metadata"
          },
          "__typename": "WalletToken"
        }
      ],
      "totalCount": 1,
      "__typename": "FavoriteNFTResponse"
    }
  }
}

Arguments

NameTypeDescriptionRequired
orgIDUUIDThe organization ID.Yes
searchKeyStringSearch the token by NFT contract name, contract address, token id, token name, artist name, minted year.No
limitIntegerSet the limit of return responseNo
offsetIntegerSet to skip the NFT by offsetNo
filtersObjectFilter is to change the order by the NFT like recently_listed,recently_minted,initially_minted,price_low_to_high,price_low_to_high,most_saved,purchased_from_orgNo
buyerAddressStringMetamask connected wallet addressNo

Fields

NameTypeDescription
FavoriteNFTResponseObjectContains the all information about NFT details contract address, token id name, status, owner and t etc..

Example

Load the user NFT favourite list of nft details.