This query used to subscribe getNFTEvents.
Sample Query
subscription {
getNFTEventDetails(
method: [
DRAFT
OWNER_MINTED
NFT_DELIVERY_VIA_TOKEN_TRANSFER
NFT_DELIVERY_VIA_MINT
]
orgId: "d086ea16-d40d-454c-84a4-64b5e940670a"
nftContractId: "57bc6c9a-788b-4e60-83ff-a69aca3496ad"
) {
name
status
nftTokenID
registryTokenID
onChainId
contractAddress
editions
metadataJSON
tokenDeploymentStatus
contractAddress
editions
eventType
}
}
Sample Response
{
"data": {
"getNFTEventDetails": {
"name": "test token oct 13",
"status": "",
"nftTokenID": "53ea906f-cd79-4a60-8657-793b54667754",
"registryTokenID": null,
"onChainId": 13,
"contractAddress": "0x3a93A5c15b4654947b3a328a759F9A3490191Dc4",
"editions": 1,
"metadataJSON": "{\"name\":\"test token oct 13\",\"description\":\"test token oct 13\",\"image\":\"https://storage.googleapis.com/mojito-dev-public/nft/0x3a93A5c15b4654947b3a328a759F9A3490191Dc4/images/e183c167-e47e-4b9d-9d2a-1c77b1cc89bb.png\"}",
"tokenDeploymentStatus": "MINTED",
"eventType": null
}
}
}
Authorization Required
Name | Type | Description | Required |
---|---|---|---|
orgId | UUID1 | The organization ID | Yes |
nftContractId | UUID1 | The NftContract ID | No |
method | NFTeventmethods | Events which need to be subscribed | Yes |