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.

Prerequisites
  1. Group account (authority) — You need a Cosmos SDK group account that controls the trust registry.
  2. Operator authorization — Your operator account must be granted authorization for MsgArchiveTrustRegistry by the authority. See Grant Operator Authorization.
  3. Existing trust registry — The trust registry must already exist and be controlled by your 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