In order to allow some specific operations to be performed only by a small set of individuals,
inside Commercio.network we introduced the
This module allows for two simple operations:
- Set a government address that will later be used as a sort of on-chain authentication method.
- Read the government address that has been set.
# Setting a government address
The address identified as the
government can be set only during the genesis.
This operation can be performed using the following command:
commercionetworkd set-genesis-government-address <ADDRESS-TO-USE>
Note: you can run this command only once. Running it several times after the first value has been set will result in an error been thrown inside the console.
# Query government address
The government address can be get:
- via CLI,
commercionetworkd query government gov-address
- via REST, by making a GET request to the
- via GRPC, by making a Query to the