Archive or Unarchive a Credential Schema
MOD-CS-MSG-3
You can archive or unarchive a credential schema with the following command. This operation is delegable.
tip
Only the authority (group account) that controls the trust registry owning this credential schema can execute this method. The operator (specified via --from) must be authorized by the authority to execute CS messages.
Message Parameters
| Name | Description | Mandatory |
|---|---|---|
| id | ID of the credential schema to archive or unarchive | yes |
| archive | true to archive, false to unarchive | yes |
Post the Message
- CLI
- Frontend
Usage
veranad tx cs archive [id] [archive] \
--authority <authority> \
--from <operator> --chain-id <chain-id> --keyring-backend test --fees <amount> --node $NODE_RPC
info
The --authority flag specifies the group account that controls the trust registry owning this schema. The --from flag specifies the operator (transaction signer) who must be authorized by the authority.
Archive a Credential Schema
SCHEMA_ID=10
veranad tx cs archive ${SCHEMA_ID} true \
--authority $AUTHORITY_ACC \
--from $USER_ACC --chain-id ${CHAIN_ID} --keyring-backend test --fees 600000uvna --node $NODE_RPC
Unarchive a Credential Schema
SCHEMA_ID=10
veranad tx cs archive ${SCHEMA_ID} false \
--authority $AUTHORITY_ACC \
--from $USER_ACC --chain-id ${CHAIN_ID} --keyring-backend test --fees 600000uvna --node $NODE_RPC
tip
TODO: describe here