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
Name | Type | Description | Required |
---|---|---|---|
onChainId | Integer | Information of the on chain ID declared in number. | Yes |
contractAddress | String | The name of the contract address. | Yes |
marketplaceId | UUID | The marketplace ID. | Yes |
Returns
Name | Type | Description |
---|---|---|
N/A | String | Value of the imported external token. |
Example
Import the external token to the collection using Chain ID, marketplace ID, and contract address: