Issue and verify a verifiable credential in under 5 minutes
credentials:template.create
, credentials.read
, and credentials.create
under the Credentials category and create your key. Save this key for the next step.
crossmint:5fe6040e-07a1-48bb-97a3-b588a7e927d2:courseCompletionQuickstart
. Types allow you to specify the attributes you are interested in certifying. They also act as a protective measure, preventing the addition of unauthorized fields and, as a result, the tampering of the Verifiable Credential. You can define your own.
none
. This means the Verifiable Credential data will be stored in plain text. To encrypt the data, read about the supported encryption modalities.
crossmint
. This means the Verifiable Credential data will be stored by Crossmint. To store the data at the location of your choice, or in decentralized storage, read about the supported storage modalities.
polygon-amoy
), along with public (non-confidential) metadata related to your credential’s template.
To get started, copy the createVCtemplate.js
file below, fill in your API key, and run it in your terminal.
issueCredential.js
file from below, add your API key, and templateId (that was returned from the previous step), and run the file from your terminal.
actionId
.
urn:uuid:<UUID>
<chain>:<contractAddress>:<tokenId>
retrieveCredential.js
file from below, use your API key, the credentialId
, and run the file from your terminal.
verifyCredential.js
file from below, use your API key, the credentialId, and run the file from your terminal.
revokeCredential.js
file from below, use your API key, the credentialId, and run the file from your terminal.