This mutation allows to set a token URI for an NFT contract.
Sample Mutation
Set a token URI for the NFT contract:
mutation{
nftContractSetTokenURI(nftContractId:"5f256d06-d155-4119-8e0d-b6ea902fda36"
tokenId:22
uri:"schema")
}
Sample Response
{
"data": {
"nftContractSetTokenURI": "62ad8ee3-599b-46c4-bb28-d410c0c22ac7"
}
}
Arguments
Name | Type | Description | Required |
---|---|---|---|
nftContractId | UUID | The NFT contract ID. | Yes |
tokenId | Integer | The token ID. | Yes |
uri | String | Uniform Resource Identifier | Yes |
Returns
Name | Type | Description |
---|---|---|
nftContractSetTokenURI | String | The token URI ID. |
Example
Set a token URI for an NFT contract by the contract ID, the token ID, and the URI: