Sentinel CLI logo

Sentinel CLI Sentinel

Use this command to install Sentinel CLI:
winget install --id=Sentinel.SentinelCLI -e

The Sentinel CLI is a command line tool to interact with Sentinel Blockchain.

Sentinel CLI is a command-line tool designed to interact with the Sentinel Blockchain network, enabling users to manage keys, query nodes, create subscriptions, and connect or disconnect from dVPN services.

Key Features:

  • Manages cryptographic keys for secure interactions with the Sentinel network
  • Queries active nodes to identify available VPN services
  • Creates and manages subscription agreements with selected nodes
  • Connects and disconnects from dVPN services via command line interface

Ideal for developers and blockchain enthusiasts seeking a lightweight, flexible way to interact with the Sentinel network. It provides full control over blockchain operations without requiring a graphical user interface.

The tool can be installed via winget, making it easy to integrate into your development environment.

README

Sentinel CLI Client

Go GoReport Licence Tag TotalLines

Install dependencies

Linux

sudo apt-get update && \
sudo apt-get install curl openresolv wireguard-tools && \
sudo sh -c "curl -fsLS https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh | bash -s -- --version v5.2.1"

Mac

brew install v2ray wireguard-tools

or

port install v2ray wireguard-tools

Install Sentinel CLI client

curl --silent https://raw.githubusercontent.com/sentinel-official/cli-client/master/scripts/install.sh | sh

Connect to a dVPN node

  1. Create or recover a key

    Need not perform this step again in case you have already done it once.

    sentinelcli keys add \
        --home "${HOME}/.sentinelcli" \
        --keyring-backend file \
        
    

    Pass flag --recover to recover the key.

  2. Query the active nodes and choose one

    sentinelcli query nodes \
        --home "${HOME}/.sentinelcli" \
        --node https://rpc.sentinel.co:443 \
        --status Active \
        --page 1
    

    Increase the page number to get more nodes

  3. Subscribe to a node

    sentinelcli tx subscription subscribe-to-node \
        --home "${HOME}/.sentinelcli" \
        --keyring-backend file \
        --chain-id sentinelhub-2 \
        --node https://rpc.sentinel.co:443 \
        --gas-prices 0.1udvpn \
        --from   
    
  4. Query the active subscriptions of your account address

    sentinelcli query subscriptions \
        --home "${HOME}/.sentinelcli" \
        --node https://rpc.sentinel.co:443 \
        --status Active \
        --page 1 \
        --address 
    
  5. Connect

    sudo sentinelcli connect \
        --home "${HOME}/.sentinelcli" \
        --keyring-backend file \
        --chain-id sentinelhub-2 \
        --node https://rpc.sentinel.co:443 \
        --gas-prices 0.1udvpn \
        --yes \
        --from   
    

Disconnect from a dVPN node

  1. Disconnect

    sudo sentinelcli disconnect \
        --home "${HOME}/.sentinelcli"
    

Click here to know more!

Versions
0.3.2
Website
License