ContractInput
Defines the input to create or update a contract
input ContractInput {
credentialTypes: [String!]!
display: ContractDisplayModelInput!
faceCheckSupport: FaceCheckPhotoSupport
isPublic: Boolean!
name: String!
templateId: ID
validityIntervalInSeconds: PositiveInt!
}
Fields
ContractInput.credentialTypes
● [String!]!
non-null scalar
The type(s) of the contract / credential Requires at least one type, and cannot have duplicate types
ContractInput.display
● ContractDisplayModelInput!
non-null input
The credential display definition defined by this contract.
ContractInput.faceCheckSupport
● FaceCheckPhotoSupport
enum
The type of face check photo support
ContractInput.isPublic
● Boolean!
non-null scalar
Defines whether the contracts created from this template will be published in the Verified Credentials Network
ContractInput.name
● String!
non-null scalar
The name of the contract.
ContractInput.templateId
● ID
scalar
The ID of the template used as a base for the contract
ContractInput.validityIntervalInSeconds
● PositiveInt!
non-null scalar
The lifespan of the credential expressed in seconds
Member Of
ContractImportInput
input ● createContract
mutation ● updateContract
mutation