This mutation allows the creation of the token draft.
Sample Mutation
Create a token draft:
mutation{
createTokenDraft(tokens:{
tokenId:"6982ff38-1a54-41bd-b337-0f918d92f96c"
name:"fsdfsd"
description:"asset description"
assetId:"2c78a96a-1f26-4772-ba96-63a7baf5c230"
royaltyBasisPoints:2
copyright:""
metadataJSON:""
editions:1
invoiceItemId:"78be8874-179e-48bc-bc07-4ffb853868bb"
}
contractId:"666505bb-9f77-4b39-b2e2-ac903c7515fd")
}
Sample Response
{
"data": {
"createTokenDraft": "Token draft done"
}
}
Arguments
Name | Type | Description | Required |
---|---|---|---|
TokenDraft | Object | Contains 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: