nftContractSetTokenURI

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

NameTypeDescriptionRequired
nftContractIdUUIDThe NFT contract ID.Yes
tokenIdIntegerThe token ID.Yes
uriStringUniform Resource IdentifierYes

Returns

NameTypeDescription
nftContractSetTokenURIStringThe token URI ID.

Example

Set a token URI for an NFT contract by the contract ID, the token ID, and the URI: