getNFTDetails

get NFTDetails by nftTokenId or contractAddress with token id or get NFT by contractAddress with random NFT against the contact. If we are passing parameters without nftTokenId means we need to pass the networkID also.

Sample

query (
  $networkId: UUID1
  $contractAddress: String
  $onChainTokenID: BigInt
  $orgId: UUID1!
  $nftTokenId: UUID1
  $editionNumber: Int
  $ownerAddress: String
  $buyerAddress: String
) {
  getNFTDetails(
    networkId: $networkId
    contractAddress: $contractAddress
    onChainTokenID: $onChainTokenID
    nftTokenId: $nftTokenId
    orgId: $orgId
    editionNumber: $editionNumber
    ownerAddress: $ownerAddress
    buyerAddress: $buyerAddress
  ) {
    contractAddress
    tokenId
    network
    networkID
    owner
    contractName
    tokenType
    mintedAt
    status
    balance
    editions
    price {
      buyNowPrice {
        value
        unit
        type
        __typename
      }
      lastPurchasedPrice {
        value
        unit
        type
        __typename
      }
      makeOfferHighestPrice {
        value
        unit
        type
        __typename
      }
      makeOfferLatestPrice {
        value
        unit
        type
        __typename
      }
      __typename
    }
    latestOffer {
      price {
        value
        unit
        type
        __typename
      }
      __typename
    }
    tokenURI
    editionNumber
    isFavorite
    nftTokenId
    tokenOwnerAvatar
    tokenOwnerAddress
    tokenOwnerUsername
    isBuyNowEnabled
    isMakeOfferEnabled
    isOfferExist
    listedOrderInfo {
      id
      listedCurrency {
        contractAddress
        __typename
      }
      price {
        value
        unit
        type
        __typename
      }
      __typename
    }
    artist {
      id
      description
      artistName
      artistLocation
      artistContactEmail
      artistContactNumber
      artistWebsite
      __typename
    }
    metadata {
      name
      description
      image
      animationURL
      openSeaImageURL
      attributes {
        traitType
        displayType
        maxValue
        value {
          __typename
          ... on AttributeValueString {
            stringValue
            __typename
          }
          ... on AttributeValueInt {
            intValue
            __typename
          }
          ... on AttributeValueFloat {
            floatValue
            __typename
          }
        }
        __typename
      }
      __typename
    }
    __typename
  }
}

Sample variable

{
  "nftTokenId": "397d78aa-8b31-4081-be25-b3e87cb44e27",
  "orgId": "f2f5c627-5421-4c40-9913-edfd09dd98b3"
}

Sample response

{
  "data": {
    "getNFTDetails": {
      "contractAddress": "0x33de1261f21334703c8872284d73de26a2ef765f",
      "tokenId": "11",
      "network": "Goerli Testnet",
      "networkID": "c41db347-0ee3-4212-943a-ca213b8e0ea8",
      "owner": null,
      "contractName": "XMAS TOKENS",
      "tokenType": "ERC721",
      "mintedAt": "2023-02-14T09:22:41Z",
      "status": "OPEN_FOR_SALE",
      "balance": null,
      "editions": 1,
      "price": {
        "buyNowPrice": null,
        "lastPurchasedPrice": [
          {
            "value": 62.8008,
            "unit": "USD",
            "type": "FIAT",
            "__typename": "NFTPrice"
          },
          {
            "value": 0.04,
            "unit": "ETH",
            "type": "CRYPTO",
            "__typename": "NFTPrice"
          }
        ],
        "makeOfferHighestPrice": null,
        "makeOfferLatestPrice": null,
        "__typename": "Price"
      },
      "latestOffer": null,
      "tokenURI": "https://ipfs.io/ipfs/QmfMjHRSDP415gmMS9g7h8BMNys4yr9ZgVM8wAtxoBxaCY/11",
      "editionNumber": null,
      "isFavorite": false,
      "nftTokenId": "397d78aa-8b31-4081-be25-b3e87cb44e27",
      "tokenOwnerAvatar": null,
      "tokenOwnerAddress": "0xfcf8f2f1734becafb182f8a3a4448c7bad82667a",
      "tokenOwnerUsername": null,
      "isBuyNowEnabled": true,
      "isMakeOfferEnabled": true,
      "isOfferExist": null,
      "listedOrderInfo": null,
      "artist": {
        "id": "33c4fa08-7714-4a60-9f67-318774758c38",
        "description": "",
        "artistName": "Adam Pendleton",
        "artistLocation": "",
        "artistContactEmail": "",
        "artistContactNumber": "",
        "artistWebsite": "",
        "__typename": "Artist"
      },
      "metadata": {
        "name": "Beary Christmas #11",
        "description": "This is #11 in the Beary Christmas collection by Satoshibles.",
        "image": "ipfs://QmZTJBmMW9cxvcXDv9QoE3NU1aGbzMN4YiuYGxmCEwsTU4/11.png",
        "animationURL": "",
        "openSeaImageURL": "",
        "attributes": [
          {
            "traitType": "background",
            "displayType": "",
            "maxValue": 0,
            "value": {
              "__typename": "AttributeValueString",
              "stringValue": "lime"
            },
            "__typename": "MetadataAttributes"
          },
          {
            "traitType": "fur",
            "displayType": "",
            "maxValue": 0,
            "value": {
              "__typename": "AttributeValueString",
              "stringValue": "panda"
            },
            "__typename": "MetadataAttributes"
          },
          {
            "traitType": "body",
            "displayType": "",
            "maxValue": 0,
            "value": {
              "__typename": "AttributeValueString",
              "stringValue": "shirt-bowtie-green"
            },
            "__typename": "MetadataAttributes"
          },
          {
            "traitType": "glasses",
            "displayType": "",
            "maxValue": 0,
            "value": {
              "__typename": "AttributeValueString",
              "stringValue": "green"
            },
            "__typename": "MetadataAttributes"
          },
          {
            "traitType": "head",
            "displayType": "",
            "maxValue": 0,
            "value": {
              "__typename": "AttributeValueString",
              "stringValue": "cap-satoshibles"
            },
            "__typename": "MetadataAttributes"
          }
        ],
        "__typename": "ERC721Metadata"
      },
      "__typename": "NFTDetails"
    }
  }
}

Arguments

In optional fields any one of the case of parameter need to pass nftTokenIdor contactAddress,onChainTokenID, networkId or contractAddress,networkId

NameTypeDescriptionRequirement
nftTokenIdUUIDThe nft tokens idNo
orgIdUUIDThe organization idYes
contractAddressStringNft contract addressNo
onChainTokenIDIntegerToken id in NFT contractNo
networkIdUUIDThe network id.No
editionNumberIntegerif the token type ERC1155 need to pass the edition number, if nftTokenIdnot provide.No
ownerAddressStringNft owner address.No
buyerAddressStringNft buyer address.No

Fields

NameTypeDescription
NFTDetailsOBjectAn object that contains the NFTDetails object information, such as token name,toke id, contract address , contract name, owner address and etc..

Example

Load the NFT details depends on parameter.