Skip to main content
Version: v4 (next)

Delegation Module

The Delegation (DE) module manages operator authorizations, allowing group accounts (authorities) to delegate transaction execution to operator accounts.

Refer to the Environments section for details on RPC endpoints to target the correct network. Setup Environments variable for specific RPC endpoints to target the correct network.

Transaction Messages

Spec IDCommandDescription
MOD-DE-MSG-3grant-operator-authzGrant operator authorization to a grantee
MOD-DE-MSG-4revoke-operator-authzRevoke operator authorization for a grantee

Grant Operator Authorization

veranad tx de grant-operator-authz $AUTHORITY_ACC $OPERATOR_ACC \
--msg-types "/verana.tr.v1.MsgCreateTrustRegistry,/verana.tr.v1.MsgUpdateTrustRegistry" \
--with-feegrant \
--from $USER_ACC --keyring-backend test --chain-id $CHAIN_ID --fees 600000uvna --node $NODE_RPC --yes

Revoke Operator Authorization

veranad tx de revoke-operator-authz $AUTHORITY_ACC $OPERATOR_ACC \
--from $USER_ACC --keyring-backend test --chain-id $CHAIN_ID --fees 600000uvna --node $NODE_RPC

Queries

Spec IDCommandDescription
MOD-DE-QRY-1list-operator-authorizationsList operator authorizations

List Operator Authorizations

veranad q de list-operator-authorizations \
--authority $AUTHORITY_ACC \
--node $NODE_RPC --output json

Get Module Parameters

veranad q de params --node $NODE_RPC --output json