addTokensToCollection

This mutation allows the addition of a new token to a collection.

Sample Mutation

Add a token to a collection:

mutation{
  addTokensToCollection(marketplaceId:"d15b1b02-3c87-434d-a7fb-004b27415fbc" tokenIds:"5c14fa84-a461-448e-b63d-95d38118e81b")
}

Sample Response

{
  "data": {
    "addTokensToCollection": "1 token added to collection"
  }
}

Arguments

NameTypeDescriptionRequired
tokenIds[UUID]The token ID.Yes
marketplaceIdUUIDThe marketplace ID.Yes

Returns

NameTypeDescription
N/AStringValue of the added token collection.

Example

Create a token addition to a collection in a marketplace: