createTokenDraft

This mutation allows the creation of the token draft.

Sample Mutation

Create a token draft:

mutation{
 createTokenDraft(tokens:{
  tokenId:"5f0f898b-f086-4336-bc3c-7b9efbfcf5f7"
  name:"picture"
  description:"asset description"
  assetId:"f046da39-e52a-4d95-b254-2a407e91c515"
  royaltyBasisPoints:2
  metadataJSON:""
}
contractId:"64f98a68-378f-44d6-89f7-9aaaeb22abfb")
}

Sample Response

{
  "data": {
    "createTokenDraft": "Token draft done"
  }
}

Arguments

Name

Type

Description

Required

TokenDraft

Object

Contain information from TokenDraft.

Yes

contractId

UUID

The contract ID.

Yes

Returns

Name

Type

Description

N/A

String

The token draft created.

Example

Create a token draft using Token Draft object and contract ID: