Skip to main content
Version: v4 (next)

Archive or Unarchive a Trust Registry

MOD-TR-MSG-5

You can archive or unarchive a trust registry with the following command. This operation is delegable.

tip

Only the authority (group account) that controls the trust registry can execute this method. The operator must be authorized by the authority.

Message Parameters

NameDescriptionMandatory
authorityGroup account that controls the trust registryyes
trust-registry-idID of the trust registry to archive or unarchiveyes
archivetrue to archive, false to unarchiveyes

Post the Message

Usage

veranad tx tr archive-trust-registry [authority] [trust-registry-id] [archive] \
--from <operator> --chain-id <chain-id> --keyring-backend test --fees <amount> --node $NODE_RPC

Note: The following examples assume you have set TRUST_REG_ID and AUTHORITY_ACC environment variables.

Archive a Trust Registry

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

Unarchive a Trust Registry

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