updateTokenDraft

This mutation allows updates for the token draft

Sample Mutation

Update a token draft that has a name "picture".

mutation{
 updateTokenDraft(token:{
  tokenId:"5f0f898b-f086-4336-bc3c-7b9efbfcf5f7"
  name:"picture"
  description:"asset description"
  assetId:"f046da39-e52a-4d95-b254-2a407e91c515"
  royaltyBasisPoints:2
  metadataJSON:""
})
}

Sample Response

{
  "data": {
    "updateTokenDraft": "Token draft was updated"
  }
}

Arguments

Name

Type

Description

Required

TokenDraft

Object

Contains information from TokenDraft.

Yes

Returns

Name

Type

Description

N/A

String

The updated value of the token draft.

Example

Create an update of a token draft using Token Draft object: