OBJECT

CanCreateResponseObject

Returns information about whether a specified Web3 User (DID) can create a specified EWAI asset on this EWAI Instance (marketplace).

link GraphQL Schema definition

  • type CanCreateResponseObject {
  • # The EWAI instance name (which is always specified in EWNS format), returned here
  • # for convenience. @example 'market1.apps.exampleco.iam.ewc'
  • ewaiInstance: String!
  • # The asset name which was requested (which is always specified in EWNS format),
  • # returned here for convenience. @example 'solarfarm1.market4.adivate.ewc'
  • ewns: String!
  • # The Web3 user address (DID) which requested the creation. @example
  • # 'did:ethr:0x1234...'
  • address: String!
  • # Whether or not the user can create that asset on this marketplace (EWAI
  • # Instance). @example true
  • canCreate: Boolean!
  • # A new UUID that can be used when creating the asset in a subsequent create asset
  • # call. @example '4883e023-2528-4ac7-9b19-c1c7225e1feb'
  • canUseUuid: String
  • # A unique hash which can be stored with the asset to prevent spam later and
  • # authenticate that the asset is indeed from this specific EWAI Instance
  • # (marketplace). This is a hash using the private key of this EWAI instance. This
  • # is needed as assets on marketplaces can be public on-chain (as in the case of
  • # Ocean Protocol). @example '234adf34f...'
  • metadataKey: String
  • # A status message for the user (for example, if permission to create was denied,
  • # it will indicate why). @example 'The Web3 User does not own the EWNS being used
  • # for the asset.'
  • message: String!
  • }

link Require by