Skip to main content
Version: v4 (next)

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

NameDescriptionMandatory
idID of the credential schema to archive or unarchiveyes
archivetrue to archive, false to unarchiveyes

Post the Message

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