Skip to main content

Archive or Unarchive a Trust Registry

You can archive or unarchive a trust registry with the following command:

tip

Only the account that is the controller of the trust registry can execute this method.

Message Parameters

NameDescriptionMandatory
trust-registry-idid of the trust registry to archive or unarchive.yes
archivetrue to archive, false to unarchive.yes

Post the Message

Usage

veranad tx tr archive-trust-registry <trust-registry-id> <archive-flag> --from <user> --chain-id <chain-id> --keyring-backend test --fees <amount>

Note: The following examples assume you have set a TRUST_REG_ID environment variable, update it with your trust registry id.

Archive a Trust Registry

veranad tx tr archive-trust-registry ${TRUST_REG_ID} true --from $USER_ACC --chain-id ${CHAIN_ID} --keyring-backend test --fees 600000uvna 

Unarchive a Trust Registry

veranad tx tr archive-trust-registry ${TRUST_REG_ID} false --from $USER_ACC --chain-id ${CHAIN_ID} --keyring-backend test --fees 600000uvna