# uns.network CLI

# Introduction

uns.network provides an interactive command line interface to create and manage your crypto accounts, your UNS protocol tokens and your UNIK NFT tokens.

TIP

Livenet is not launched yet, please use sandbox.

The uns.network Command Line Interface is expected to work on recent Linux, MacOS or Windows 10 installations.

# Download and installation


Windows


macOS


Linux

GitHub version

Download the 64-bit installer

GitHub version

Install from sources

GitHub version

Install from sources

# Configuration

# Global parameters

You can use the following command line options to override the default configuration settings for a single command:

  • --verbose (optional): Additional logs

  • -n, --network (required): choose the network to interact with.

    Possible values: sandbox or local (local is for development only)

TIP

Avoid repetition of --network flag using the UNS_NETWORK={network} environment variable (or %UNS_NETWORK% for Windows shell).

Example:

$ UNS_NETWORK=sandbox uns status

You can also export this environment variable in your ~/.bashrc file (or equivalent for your current shell) to make it permanent.

  • --node (optional): URL of custom node representing blockchain endpoint

TIP

Avoid repetition of --node flag using the UNS_NODE={custom node url} environment variable (or %UNS_NODE% for Windows shell).

Example:

$ UNS_NODE="http://custom.node.example:4103" uns status

You can also export this environment variable in your ~/.bashrc file (or equivalent for your current shell) to make it permanent.

# Write global parameters

For every new data added in the chain, you may wait for the write operation to be confirmed. Once the transaction data is written in a block, the data get one confirmation for every new block added in the chain. By default we wait for one confirmation in the next 3 blocks. With the await-confirmation flag, you can choose to extend the maximum waiting time or set it to 0 which corresponds to an asynchronous operation.

  • --await-confirmation (optional): Maximum number of blocks to wait to get one confirmation of the transaction. Default to 3. 0 for immediate return.

  • --passphrase : The passphrase of the owner of UNIK. If you do not enter a passphrase you will be prompted for it.

  • --second-passphrase: The second crypto account passphrase. If you have set up a second passphrase on your crypto-account, you can specify it with this flag.

# Using an HTTP Proxy

To access uns.network through proxy servers, you can configure the HTTP_PROXY and HTTPS_PROXY environment variables with either the DNS domain names or IP addresses and port numbers used by your proxy servers. See the following examples.

    # Authenticating to a Proxy

    The uns.network CLI supports HTTP Basic authentication. Specify the user name and password in the proxy URL, as follows.

      Note

      The uns.network CLI doesn't support NTLM proxies. If you use an NTLM or Kerberos protocol proxy, you might be able to connect through an authentication proxy like Cntlm.

      # Autocompletion for Bash and Zsh

      UNS CLI Autocomplete helps you complete command and flag names when you press the tab key. CLI Autocomplete completes all of the commands in the UNS CLI and will automatically support new commands as they are added. You can also complete values for some flags and args—including apps, pipelines and config vars.

      # Installing Autocomplete

      $ uns autocomplete
      

      WARNING

      For CLI Autocomplete to work correctly, you must be on the latest version of the UNS CLI.

      The specific instructions you’ll receive depend on whether you are using bash or zsh. After you finish setup, Autocomplete is ready to use with the tab key.

      We are not planning to support shells besides bash and zsh at this time.

      # Command name completion

      You can start writing a command and then press tab to see the different possibilities for completing it. You can match against all commands that match a given prefix.

      $ uns <TAB>
      autocomplete           cryptoaccount:create   help                   properties:list        send...
      

      For example, pressing tab after typing uns res autocompletes to uns resolve.

      In bash shells, autocompletion triggers by pressing tab twice successively.

      # Flag name completion

      Most CLI commands make use of flags to provide additional input. Flags are prefaced with two dashes (--), such as (--app). Some commands have many different possible flags. You can view all available flags for each command by typing -- and then the tab key. You can match against all flag names that match a given prefix.

      $ uns resolve --
      --chainmeta  --confirmed  --help       --network    --node       --verbose
      

      For example, pressing tab after typing uns resolve -c autocompletes to uns resolve -chainmeta.

      # Commands

      # Getting help

      You can get help and list of commands with the following flags

      -h, --help: Help
      

      Example:

      $ uns -h
      uns CLI
      
      VERSION
        @uns/cli/1.0.0 win32-x64 node-v10.8.0
      
      USAGE
        $ uns [COMMAND]
      
      COMMANDS
        autocomplete   display autocomplete installation instructions
        cryptoaccount  Manage Crypto Account
        help           display help for uns
        properties     Manage UNIK properties
        resolve        Resolve a decentralized identifier.
        send           Send owned UNS protocol tokens to another crypto account.
        status         Display blockchain status
        unik           Manage UNIK
        version        UNS CLI Version
      

      You can get help on a specific command or topic (group of commands) by using --help, following your command name.

      Example:

      $ uns cryptoaccount:create --help
      Create uns.network crypto account
      
      USAGE
        $ uns cryptoaccount:create
      
      OPTIONS
        -f, --format=json|yaml      [default: json] Specify how to format the output [json|yaml].
        -h, --help                  show CLI help
        -n, --network=sandbox|local  (required) Network used to create UNIK nft token
        -v, --verbose               Detailed logs
      
      EXAMPLE
        $ uns cryptoaccount:create --network [sandbox|local] --format {json|yaml} --verbose
      

      # version

      # Introduction

      Command used to prompt CLI version.

      # Usage

      $ uns version
      

      # Output

      Command prompts CLI version number, platform and node version

      $ uns version
      @uns/cli/x.y.z win32-x64 node-v10.8.0
      

      # status

      # Introduction

      Command used to display blockchain status.

      # Parameters

      • -f --format (optional): Specify how to format the output [json|yaml]. Default to Json.

      Some global parameters may apply to this command.

      # Usage

      $ uns status
      

      # Examples

      To display uns.network sandbox blockchain status

      $ uns status --network sandbox --format yaml
      

      # Output

      Command displays some blockchain information

      $ uns status --network sandbox --format yaml
      height: 52328
      network: sandbox
      totalTokenSupply: 21104656
      tokenSymbol: SUNS
      NFTs:
        - nftName: UNIK
          individual: "19"
          organization: "4"
          network: "9"
      activeDelegates: 23
      lastBlockUrl: https://explorer.uns.network/block/52328
      

      # resolve

      # Introduction

      Resolve a Decentralized IDentifier (DID).

      # Arguments

      • DID (required): The Decentralized IDentifier to resolve, with the format of a DID. See examples below for more information.

      WARNING

      DID must be surrounded by double quotes (e.g. "@bob")

      # Parameters

      • --confirmed (optional): Minimum number of confirmation since the last update of the UNIK required to return the value. Default value is 3
      • -f --format (optional): Specify how to format the output [json|yaml|raw]. Default to JSON.

      Some global parameters may apply to this command.

      # Usage

      $ uns resolve --network sandbox "@unik:individual:bob?phone"
      

      # Examples

      Resolve @bob address property in raw format:

      $ uns resolve --network sandbox -f raw "@unik:individual:bob?address"
      
      42 quai Malakoff, 44000 Nantes
      

      Alternative syntaxes:

      $ uns resolve --network sandbox -f raw "bob?address"
      $ uns resolve --network sandbox -f raw "@bob?address"
      $ uns resolve --network sandbox -f raw "@unik:bob?address"
      

      # send

      # Introduction

      Send owned UNS protocol tokens to another crypto account.

      # Arguments

      • AMOUNT (required): The quantity of UNS tokens to send to the recipient.

      # Parameters

      • --to (required): The recipient address, public key or @unikname (warning: @unikname must be surrounded with double quotes).
      • --no-check: Allow sending tokens to an address that do not exists on chain yet.
      • --fees-included: Specify that the fees must be deducted from the amount. By default the fees are paid on top.
      • --fee: Specify a dynamic fee in UNSat. Defaults to 100000000 satoUNS = 1 UNS.

      Some global parameters may apply to this command.

      # Usage

      $ uns send 10.42 --to S59pZ7fH6vtk23mADnbpqyhfMiJzpdixws --network sandbox
      
      $ uns send 10.42 --to "@bob" --network sandbox
      

      # Examples

      # Output example
      $ uns send 10.42 --to S59pZ7fH6vtk23mADnbpqyhfMiJzpdixws --network sandbox
      Enter your crypto account passphrase (12 words phrase): *************************************************************************
      
      {
        transaction: 3996912796307dae3009bc1cb3e4b681a3e34a427d563711115799252715179f
        confirmations: 3
      }
      

      # cryptoaccount:create

      # Introduction

      With uns.network CLI you can create your uns.network crypto account using cryptoaccount:create command.

      # Parameters

      • -f --format (optional): Specify how to format the output [json|yaml]. Default to Json.

      Some global parameters may apply to this command.

      # Usage

      $ uns cryptoaccount:create
      

      # Examples

      As example, if you want to create a uns.network crypto account on sandbox network:

      $ uns cryptoaccount:create --network sandbox
      

      # Output

      If the crypto account creation succeed uns.network CLI displays your crypto account information.

      $ uns cryptoaccount:create
      
      ⚠️  WARNING: this information is not saved anywhere. You need to copy and save it by your own. ⚠️
      
      {
        "address": "S9B6HLADr1Fd6TXvEGCuNc3A9aHK9JzjYC",
        "publicKey": "03522706bd0b812faea10e92dc0400e37aba468f9df3e2f63570c11c2b66eadc22",
        "privateKey": "d7877b7867404cd35bf85ea7643ad23058f5af1262d11a389ffc429648f4abe7",
        "passphrase": "train drastic alley office seed glove cable fee firm during lottery cause",
        "network": "sandbox"
      }
      
      

      Redirect stdout to file to create json file with crypto account information:

      $ uns cryptoaccount:create --network sandbox >> ./myUNSCryptoAccount.json
      

      # cryptoaccount:read

      # Introduction

      Read current data of a specified crypto account, ic. balance

      # Parameters

      • --listunik (optional): list UNIK tokens owned by the crypto account, if any.
      • -f --format (optional): Specify how to format the output [json|yaml]. Default to Json.
      • --chainmeta (optional): Retrieve chain meta datas

      Some global parameters may apply to this command.

      # Arguments

      • cryptoAccountId (required): the ID of the crypto account. Can be either the publicKey or the address of the crypto account.

      # Usage

      $ uns cryptoaccount:read {crypto account identifier}] [--listunik]
      

      # Example

      Display crypto account information and list of UNIK token owned by this crypto account

      $ uns cryptoaccount:read SB2cknUqNNoJgQ34nbnsJwsZi5h8TNsYKe --listunik --network sandbox --format yaml
      

      # Output

      $ uns cryptoaccount:read SB2cknUqNNoJgQ34nbnsJwsZi5h8TNsYKe --listunik --network sandbox --format yaml
      data:
        address: SB2cknUqNNoJgQ34nbnsJwsZi5h8TNsYKe
        publicKey: 02cb4d32f1e69177bb428bf200b9c9dbf662826817f25fde2bf0bb17e28bd2292b
        username: null
        secondPublicKey: null
        balance: "99.9"
        isDelegate: false
        vote: null
        nfts:
          uniks: 1
        tokens:
          uniks:
            - 2145a1e84e8a54d066dbc535388898c56dae5d95e2c46a8c2e735dd3db97c03f
      chainmeta:
        network: sandbox
        node: https://forger1.sandbox.uns.network
        date: 2019-09-19T08:46:30.000Z
        height: 10610
      

      For information: Crypto account's balance is updated applying each transaction that engages the crypto account (recipient or sender). Crypto accounts are stored in-memory and are loaded by the node when it starts.

      # cryptoaccount:set-second-passphrase

      # Introduction

      Generates and adds a second passphrase on a crypto account to increase account security.

      # Parameters

      Some global parameters may apply to this command.

      # Usage

      $ uns cryptoaccount:set-second-passphrase -n sandbox
      

      # Output

      {
        "secondPassphrase": "cheap horn program during work suggest pencil collect travel suspect refuse process",
        "transaction": "7166f59df4d9a6af3b54eb8da460be1927c9bc19c60b9008382ea4e593fa5536",
        "confirmations": 1
      }
      

      # unik:create

      # Introduction

      With uns.network CLI you can create your own UNIK token using unik:create command.

      # Parameters

      • --explicitValue (required): Chosen explicit value of your UNIK (255 characters max)
      • --type (required): Type of your token [individual/organization/network]
      • -f --format (optional): Specify how to format the output [json|yaml]. Default to Json.
      • --fee : Specify a dynamic fee in satoUNS. Defaults to 100000000 satoUNS = 1 UNS.

      Some global parameters may apply to this command.

      # Usage

      $ uns unik:create --explicitValue {explicitValue} --type [individual|organization|network]
      

      # Examples

      As example, if you want to create UNIK individual token bob on sandbox network:

      $ uns unik:create --explicitValue bob --type individual --network sandbox --verbose
      

      Enter your passphrase:

      $ uns unik:create --explicitValue bob --type individual --network sandbox
      Enter your crypto account passphrase (12 words phrase):
      

      Your passphrase will be hidden, no trace in your terminal history:

      Enter your crypto account passphrase (12 words phrase): ********************************************************************************
      

      # Output

      If the creation succeed uns.network CLI prompts yout UNIK token ID and links to see token and transaction in the uns.network explorer.

      Computing UNIK fingerprint... done
      Creating transaction... done
      Sending transaction... done
      Waiting for transaction confirmation... done
      UNIK nft created (1 confirmation(s)): bf21b5c7ae13a6892315aefcfa58ee1b1c470d011564f9f29c4f1941a2373956 [ https://sandbox.explorer.uns.network/#/uniks/bf21b5c7ae13a6892315aefcfa58ee1b1c470d011564f9f29c4f1941a2373956 ]
      See transaction in explorer: https://sandbox.explorer.uns.network/#/transaction/a73f42691f2d076ba5a4e12c36f43ed8082cb8ae03c507d98305b8a08e6d4f03
      {
        "data": {
          "id": "bf21b5c7ae13a6892315aefcfa58ee1b1c470d011564f9f29c4f1941a2373956",
          "transaction": "a73f42691f2d076ba5a4e12c36f43ed8082cb8ae03c507d98305b8a08e6d4f03",
          "confirmations": 1
        }
      }
      
      

      # unik:read

      # Introduction

      Read current data of a specified UNIK token

      # Parameters

      • --unikid (required): the ID of the UNIK token
      • -f --format (optional): Specify how to format the output [json|yaml]. Default to Json.
      • --chainmeta (optional): Retrieve chain meta datas

      Some global parameters may apply to this command.

      # Usage

      $ uns unik:read --unikid {UNIK token id}
      

      # Example

      Display UNIK informations

      $ uns unik:read --unikid 2145a1e84e8a54d066dbc535388898c56dae5d95e2c46a8c2e735dd3db97c03f --network sandbox -f yaml
      

      # Output

      $ uns unik:read --unikid 2145a1e84e8a54d066dbc535388898c56dae5d95e2c46a8c2e735dd3db97c03f --network sandbox -f yaml
      data:
        id: 2145a1e84e8a54d066dbc535388898c56dae5d95e2c46a8c2e735dd3db97c03f
        ownerAddress: SB2cknUqNNoJgQ34nbnsJwsZi5h8TNsYKe
        creationBlock: "15218398688380119048"
        creationTransaction: 3831b7abdf68388c4f66663f6e655de996816e53314f1afe94a05f3da79f8d5e
        creationDate: 2019-09-19T06:53:48.000Z
        properties:
          - type: "1"
      chainmeta:
        network: sandbox
        node: https://forger1.sandbox.uns.network
        date: 2019-09-19T09:02:00.000Z
        height: 10726
      
      

      # unik:disclose

      # Introduction

      Make public one or more explicit values of your UNIK Name. This value will appear in "explicitValue" property of your UNIK. Duplicate explicit values will be removed. In case of several explicitValues disclosed, the first value of "explicitValues" property will be used as default.

      # Parameters

      • -e, --explicitValue (required): Explicit values to disclose. Must match the UNIK Name of the token.
      • --unikid (required): The UNIK token.
      • --fee : Specify a dynamic fee in satoUNS. Defaults to 100000000 satoUNS = 1 UNS.
      • -f, --format {json|yaml, json}: Specify how to format the output [json|yaml]. Default to Json.

      Some global parameters may apply to this command.

      # Usage

      $ uns unik:disclose -n sandbox --unikid {UNIK token id} -e {explicit values}
      

      # Examples

      # Success example

      Disclose two explicit values: bob and b0b

      uns unik:disclose -n sandbox --unikid 2145a1e84e8a54d066dbc535388898c56dae5d95e2c46a8c2e735dd3db97c03f -e bob -e bOb
      
      # Success output example
      $ uns unik:disclose -n sandbox --unikid 2145a1e84e8a54d066dbc535388898c56dae5d95e2c46a8c2e735dd3db97c03f -e bob -e bOb -f yaml
      
      Disclosing a @unikname to the network can't be cancelled nor revoked. Your ID will be disclosed forever. Do you confirm the disclose demand? [y/n]: y
      data:
        transaction: adf4e1d845c82b2cffe63b5e438869fcea384439ab913885697726894a99c75b
        confirmations: 1
      

      # unik:is-disclosed

      # Introduction

      Check if UNIK has one or more disclosed explicit value.

      # Arguments

      • unikid (required): The UNIK token to query.

      # Parameters

      • --confirmed (optional): Minimum number of confirmation since the last update of the UNIK required to return the value. Default value is 3.
      • -m, --chainmeta (optional): Output chain meta data related to the data itself.
      • -f, --format {json|yaml|raw, json}: Specify how to format the output [json|yaml|raw]. Default to Json.

      Some global parameters may apply to this command.

      # Usage

      $ uns unik:is-disclosed -n sandbox {UNIK token id}
      

      # Examples

      # Success example

      Check UNIK explicit value disclose status

      $ uns unik:is-disclosed -n sandbox 2145a1e84e8a54d066dbc535388898c56dae5d95e2c46a8c2e735dd3db97c03f
      
      # Success output example
      $ uns unik:is-disclosed -n sandbox 2145a1e84e8a54d066dbc535388898c56dae5d95e2c46a8c2e735dd3db97c03f -f yaml
      
      unikid: 2145a1e84e8a54d066dbc535388898c56dae5d95e2c46a8c2e735dd3db97c03f
      isDisclosed: true
      confirmations: 833
      

      # properties:set

      # Introduction

      Set (add or update) properties of UNIK token.

      Users properties keys must start with usr/. Keys without this prefix are reserved for internal properties.

      # Parameters

      • --unikid (required): the ID of the UNIK token

      • -p --properties (required): List of key/value to set as UNIK properties: "key1:value1" "key2:value2". See allowed property key format

      • --fee : Specify a dynamic fee in satoUNS. Defaults to 100000000 satoUNS = 1 UNS.

      • -f --format (optional): Specify how to format the output [json|yaml]. Default to Json.

      Some global parameters may apply to this command.

      # Usage

      $ uns properties:set --unikid {UNIK token id} --properties "{key1}:{value1}" "{key2}:{value2}" --network sandbox
      

      # Example

      Add property key/value to UNIK 2145a1e84e8a54d066dbc535388898c56dae5d95e2c46a8c2e735dd3db97c03f

      $ uns properties:set --unikid 2145a1e84e8a54d066dbc535388898c56dae5d95e2c46a8c2e735dd3db97c03f --network sandbox --properties "key:value" --passphrase "train drastic alley office seed glove cable fee firm during lottery cause" -f yaml
      

      # Output

      $ uns properties:set --unikid 2145a1e84e8a54d066dbc535388898c56dae5d95e2c46a8c2e735dd3db97c03f --network sandbox --properties "key:value" --passphrase "train drastic alley office seed glove cable fee firm during lottery cause" -f yaml
      
      unikid:  2145a1e84e8a54d066dbc535388898c56dae5d95e2c46a8c2e735dd3db97c03f
      transaction:  5cb8c18b817f793eee58f4351426c2fe865d065d95667fcc8b23d8319afc0920
      confirmations:  1
      
      

      # properties:unset

      # Introduction

      Unset properties of UNIK token.

      The only properties that can be unset are those whose key starts with usr/.

      # Parameters

      • --unikid (required): the ID of the UNIK token
      • -k --propertyKey, Key of the property to unset. (multiple occurrences)
      • --fee : Specify a dynamic fee in satoUNS. Defaults to 100000000 satoUNS = 1 UNS.
      • -f --format (optional): Specify how to format the output [json|yaml]. Default to Json.

      Some global parameters may apply to this command.

      # Usage

      $ uns properties:unset --unikid {UNIK token id} -k prop1 -k prop2 --network sandbox
      

      # Example

      Remove property key/value to UNIK 2145a1e84e8a54d066dbc535388898c56dae5d95e2c46a8c2e735dd3db97c03f

      $ uns properties:unset --unikid 2145a1e84e8a54d066dbc535388898c56dae5d95e2c46a8c2e735dd3db97c03f --network sandbox -k key --passphrase "train drastic alley office seed glove cable fee firm during lottery cause" -f yaml
      

      # Output

      $ uns properties:unset --unikid 2145a1e84e8a54d066dbc535388898c56dae5d95e2c46a8c2e735dd3db97c03f --network sandbox -k key --passphrase "train drastic alley office seed glove cable fee firm during lottery cause" -f yaml
      
      unikid:  2145a1e84e8a54d066dbc535388898c56dae5d95e2c46a8c2e735dd3db97c03f
      transaction:  5cb8c18b817f793eee58f4351426c2fe865d065d95667fcc8b23d8319afc0920
      confirmations:  1
      
      

      # properties:list

      # Introduction

      Get properties of UNIK token. The command will fail if the minimum number of confirmations has not been reached yet.

      # Parameters

      • --unikid (required): The UNIK token on which to get the properties.
      • --confirmed (optional): Minimum number of confirmation since the last update of the UNIK required to return the value. Default value is 3
      • -f --format (optional): Specify how to format the output [json|yaml|table|raw]. Default to Json.

      Some global parameters may apply to this command.

      # Usage

      uns properties:list --unikid {UNIK token id}
      

      # Examples

      # Success example

      Display UNIK properties

      $ uns properties:list --unikid 2145a1e84e8a54d066dbc535388898c56dae5d95e2c46a8c2e735dd3db97c03f --network sandbox
      
      # Success output example
      $ uns properties:list --unikid 2145a1e84e8a54d066dbc535388898c56dae5d95e2c46a8c2e735dd3db97c03f --network sandbox -f yaml
      unikid: 2145a1e84e8a54d066dbc535388898c56dae5d95e2c46a8c2e735dd3db97c03f
      properties:
        - type: "1"
      confirmations: 217
      
      # Failing example

      Display UNIK properties with at least 300 confirmations since the last UNIK token update

      uns properties:list --unikid 2145a1e84e8a54d066dbc535388898c56dae5d95e2c46a8c2e735dd3db97c03f --network sandbox --confirmed 300
      
      # Failing output example

      CLI throws error because of the actual number of confirmations of the last transaction that have updated UNIK token is lower than expected.

      $ uns properties:list --unikid 2145a1e84e8a54d066dbc535388898c56dae5d95e2c46a8c2e735dd3db97c03f --network sandbox --confirmed 300
      ›   Error: [properties:list] Not enough confirmations (expected: 300, actual: 217)
      

      # properties:get

      # Introduction

      Get the value of a specific property of a UNIK token.

      # Parameters

      • --unikid (required): The UNIK token on which to get the property.
      • -k, --propertyKey (required): the key of the property for which we query the value. See allowed property key format
      • --confirmed (optional): Minimum number of confirmation since the last update of the UNIK required to return the value. Default value is 3.
      • -m, --chainmeta (optional): Output chain meta data related to the data itself.
      • -f, --format {json|yaml|raw, json}: Specify how to format the output [json|yaml|raw]. Default to Json.

      Some global parameters may apply to this command.

      # Usage

      $ uns properties:get --unikid {UNIK token id} -k {propertyKey} -n sandbox
      

      # Examples

      # Success example

      Display UNIK property phone

      $ uns properties:get --unikid 2145a1e84e8a54d066dbc535388898c56dae5d95e2c46a8c2e735dd3db97c03f -n sandbox -k "phone"
      
      # Success output example
      $ uns properties:get --unikid 2145a1e84e8a54d066dbc535388898c56dae5d95e2c46a8c2e735dd3db97c03f -n sandbox -k "phone" -f yaml
      unikid: 2145a1e84e8a54d066dbc535388898c56dae5d95e2c46a8c2e735dd3db97c03f
      property: phone
      value: +33606060606
      confirmations: 833
      

      # delegate:vote

      # Introduction

      This command allows you to vote for a delegate with his @unikname to get him elected.

      # Arguments

      • ID (required): the unikid of the delegate to vote for or the @unikname with the format of a DID. See examples below for more information.

      # Parameters

      Some global parameters may apply to this command.

      # Usage

      $ uns delegate:vote -n sandbox {ID Unikname}
      

      # Examples

      Vote for the delegate whose @unikname id (or unikid) is 2145a1e37e8a54d066dbc535388898c56dae5d95e2c46a8c2e735dd3db97c03f

      $ uns delegate:vote -n sandbox 2145a1e37e8a54d066dbc535388898c56dae5d95e2c46a8c2e735dd3db97c03f
      

      Vote for the individual delegate whose @unikname is @Bob

      $ uns delegate:vote -n sandbox "@Bob"
      

      Vote for the organization delegate whose @unikname is @MyCompany

      $ uns delegate:vote -n sandbox "@organization:MyCompany"
      

      # delegate:unvote

      # Introduction

      This command allows you to revoke your vote given to a delegate with his @unikname.

      # Arguments

      • ID (required): the unikid of the delegate to unvote for or the @unikname with the format of a DID. See examples below for more information.

      # Parameters

      Some global parameters may apply to this command.

      # Usage

      $ uns delegate:unvote -n sandbox {ID Unikname}
      

      # Examples

      Unvote for the delegate whose @unikname id (or unikid) is 2145a1e37e8a54d066dbc535388898c56dae5d95e2c46a8c2e735dd3db97c03f

      $ uns delegate:unvote -n sandbox 2145a1e37e8a54d066dbc535388898c56dae5d95e2c46a8c2e735dd3db97c03f
      

      Unvote for the individual delegate whose @unikname is @Bob

      $ uns delegate:unvote -n sandbox "@Bob"
      

      Unvote for the organization delegate whose @unikname is @MyCompany

      $ uns delegate:unvote -n sandbox "@organization:MyCompany"
      

      # delegate:register

      # Introduction

      This command allows you to register a UNIK as delegate with your Unikname. Before registering you must have publicly disclosed your Unikname (see unik:disclose command) To apply as delegate, the Crypto-account of the Unik candidate is limited to a single Unik (i.e delegate user should own a maximum of 1 Unik in crypto-account).

      # Arguments

      • ID (required): the unikid to register as delegate or the @unikname with the format of a DID. See examples below for more information.

      # Parameters

      Some global parameters may apply to this command.

      # Usage

      $ uns delegate:register -n sandbox {ID Unikname}
      

      # Examples

      Register individual @Bob as delegate

      $ uns delegate:register -n sandbox "@Bob"
      

      Register organization @MyCompany as delegate

      $ uns delegate:register -n sandbox "@organization:MyCompany"
      

      # delegate:resign

      # Introduction

      This command allows you to resign delegate status of your UNIK.

      # Arguments

      • ID (required): The unikid to unregister or the @unikname with the format of a DID. See examples below for more information.

      # Parameters

      Some global parameters may apply to this command.

      # Usage

      $ uns delegate:resign -n sandbox {ID Unikname}
      

      # Examples

      Resignation of delegate @Bob

      $ uns delegate:resign -n sandbox "@Bob"