addExistingTokenToCollection

This mutation allows the addition of an existing token to a collection.

Sample Mutation

Create the addition of an existing token to the collection in a marketplace:

mutation{
  addExistingTokenToCollection(tokenId:"063b6969-a2f1-4267-94c7-28d5a7ffde55"marketplaceId:"ebd2bab6-5c5c-44ae-9e68-29ea1f93acdb")
}

Sample Response

{
  "data": {
    "addExistingTokenToCollection": "Token added to collection"
  }
}

Result

548

Arguments

NameTypeDescriptionRequired
tokenIdUUIDThe token ID.Yes
marketplaceIdUUIDThe marketplace ID.Yes

Returns

NameTypeDescription
N/AStringValue of the added existing token.

Example

Add the existing token to collection using marketplace ID and token ID: