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
- Group account (authority) — You need a Cosmos SDK group account that controls the trust registry.
- Operator authorization — Your operator account must be granted authorization for
MsgArchiveTrustRegistryby the authority. See Grant Operator Authorization. - Existing trust registry — The trust registry must already exist and be controlled by your authority.
Message Parameters
| Name | Description | Mandatory |
|---|---|---|
| authority | Group account that controls the trust registry | yes |
| trust-registry-id | ID of the trust registry to archive or unarchive | yes |
| archive | true to archive, false to unarchive | yes |
Post the Message
- CLI
- Frontend
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
tip
TODO: describe here