This query retrieves the basic asset details of the NFT, along with its marketplace listing information and offer status details.
Sample query
query ($networkId: UUID1, $contractAddress: String, $onChainTokenID: BigInt, $orgId: UUID1!, $nftTokenId: UUID1, $editionNumber: Int, $ownerAddress: String, $buyerAddress: String, $currency: CurrencyCodeFiat) {
getNFTDetails(
networkId: $networkId
contractAddress: $contractAddress
onChainTokenID: $onChainTokenID
nftTokenId: $nftTokenId
orgId: $orgId
editionNumber: $editionNumber
ownerAddress: $ownerAddress
buyerAddress: $buyerAddress
currency: $currency
) {
contractAddress
tokenId
network
networkID
owner
contractName
tokenType
mintedAt
status
balance
editions
mediaSourceExtension
mediaSourceType
mediaSourceURL
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
slug
__typename
}
metadata {
name
description
image
animationURL
openSeaImageURL
tags
yearCreated
createdBy
attributes {
traitType
displayType
maxValue
value {
__typename
... on AttributeValueString {
stringValue
__typename
}
... on AttributeValueInt {
intValue
__typename
}
... on AttributeValueFloat {
floatValue
__typename
}
}
__typename
}
__typename
}
__typename
}
}
Sample variable
{
"orgId": "0db10bbf-85fe-4c87-911b-d18f8568fc07",
"onChainTokenID": "7dDe5D6N16tkuM53RKEuKJ7gZDiB7NC6oyQKP2AQJDSc",
"contractAddress": "FytWTAobotGfihugTU8TEQzEgjfrttUVNWcRHv1GG2G3",
"currency": "USD"
}
Sample response
{
"data": {
"getNFTDetails": {
"contractAddress": "FytWTAobotGfihugTU8TEQzEgjfrttUVNWcRHv1GG2G3",
"tokenId": "7dDe5D6N16tkuM53RKEuKJ7gZDiB7NC6oyQKP2AQJDSc",
"network": "Solana Devnet",
"networkID": "51987430-77d2-4633-99c3-100cdd9952c7",
"owner": null,
"contractName": "GrapeCraft",
"tokenType": "NonFungible",
"mintedAt": "2024-11-18T12:16:55Z",
"status": "OPEN_FOR_SALE",
"balance": null,
"editions": 1,
"mediaSourceExtension": "jpeg",
"mediaSourceType": "IMAGE",
"mediaSourceURL": "https://storage.googleapis.com/mojito-dev-public/nft/solana/GrapeCraft/7.jpeg",
"price": {
"buyNowPrice": null,
"lastPurchasedPrice": [
{
"value": 0.0382,
"unit": "USD",
"type": "FIAT",
"__typename": "NFTPrice"
},
{
"value": 1,
"unit": "VIN",
"type": "CRYPTO",
"__typename": "NFTPrice"
}
],
"makeOfferHighestPrice": null,
"makeOfferLatestPrice": null,
"__typename": "Price"
},
"latestOffer": null,
"tokenURI": "https://storage.googleapis.com/mojito-dev-public/nft/solana/GrapeCraft/7.json",
"editionNumber": null,
"isFavorite": false,
"nftTokenId": "021272bc-e41b-412f-8631-f63304a6d3a6",
"tokenOwnerAvatar": null,
"tokenOwnerAddress": "7GckBHDKCMEdFdnxJV3qY12YCEVop6MKtgjVAnd7vHGD",
"tokenOwnerUsername": null,
"isBuyNowEnabled": true,
"isMakeOfferEnabled": true,
"isOfferExist": null,
"listedOrderInfo": null,
"artist": {
"id": "2a370ba0-b72c-4203-92c2-67637922e7d0",
"description": "",
"artistName": "Ramya",
"artistLocation": "",
"artistContactEmail": "",
"artistContactNumber": "",
"artistWebsite": "",
"slug": "ramya",
"__typename": "Artist"
},
"metadata": {
"name": "GrapeCraft #7",
"description": "A rare vintage-inspired collectible from the GrapeCraft series.",
"image": "https://storage.googleapis.com/mojito-dev-public/nft/solana/GrapeCraft/7.jpeg",
"animationURL": "",
"openSeaImageURL": "",
"tags": null,
"yearCreated": "2024-11-18T12:16:55",
"createdBy": "",
"attributes": [
{
"traitType": "Background",
"displayType": "",
"maxValue": 0,
"value": {
"__typename": "AttributeValueString",
"stringValue": "Vineyard"
},
"__typename": "MetadataAttributes"
},
{
"traitType": "Age",
"displayType": "",
"maxValue": 0,
"value": {
"__typename": "AttributeValueString",
"stringValue": "5 years"
},
"__typename": "MetadataAttributes"
},
{
"traitType": "Bottle Type",
"displayType": "",
"maxValue": 0,
"value": {
"__typename": "AttributeValueString",
"stringValue": "Cabernet Sauvignon"
},
"__typename": "MetadataAttributes"
}
],
"__typename": "ERC721Metadata"
},
"__typename": "NFTDetails"
}
}
}
Fields
Name | Type | Description |
---|---|---|
orgId | UUID1 | The organization ID. |
onChainTokenID | String | The NFT token ID. |
contractAddress | String | The Solana NFT contract address. |
currency | Enum | This will decide to show sale currency converted into fiat currency amount, i.e USD,EUR |