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

548548

Arguments

Name

Type

Description

Required

tokenId

UUID

The token ID.

Yes

marketplaceId

UUID

The marketplace ID.

Yes

Returns

Name

Type

Description

N/A

String

Value of the added existing token.

Example

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