Managing Token Attributes & Metadata
Log into the Platform UI and navigate to the Collections or Tokens page. Next, click the three vertical dots button for the collection or token you want to edit and navigate to the Attributes option. A new page will open where you can view, Set, and Remove your attributes, or Removal All the attributes.
Please refer to the API Docs for the various attribute mutations, or use the GraphiQL Docs Explorer (available once you have set an Authorization header, or are logged in to the Platform UI).
mutation BatchSetAttribute {
BatchSetAttribute(
collectionId: "7154"
tokenId: {integer:6533}
attributes: [{
key:"test"
value:"hello"
}]
) {
id
transactionId
transactionHash
method
encodedData
state
wallet {
account {
publicKey
address
}
}
}
}
These mutations will set up new transactions that once finalized on-chain will add or remove the attributes from the collection or token you specify. A WebSocket event will also be fired so you can pick up the changes in real-time by listening to the app channel on the WebSocket.
Last modified 1mo ago