importExternalTokenToCollection

This mutation allows the imports of external tokens to a collection.

Sample Mutation

Perform the importing of external token to the collection in a certain marketplace:

mutation{
  importExternalTokenToCollection(onChainId:4 contractAddress:"0x03175995b49FFD40A6b2e47dd919F7DabbB278f3"marketplaceId:"d15b1b02-3c87-434d-a7fb-004b27415fbc")
}

Sample Response

{
  "data": {
    "importExternalTokenToCollection": "External token imported to collection"
  }
}

Arguments

NameTypeDescriptionRequired
onChainIdIntegerInformation of the on chain ID declared in number.Yes
contractAddressStringThe name of the contract address.Yes
marketplaceIdUUIDThe marketplace ID.Yes

Returns

NameTypeDescription
N/AStringValue of the imported external token.

Example

Import the external token to the collection using Chain ID, marketplace ID, and contract address: