Skip to content

cjudith-ledger/cli-client

 
 

Repository files navigation

Sentinel CLI Client

Tag GoReportCard Licence LoC

Install dependencies

Linux

sudo apt-get update && \
sudo apt-get install openresolv wireguard-tools

Mac

brew install wireguard-tools

or

port install wireguard-tools

Install Sentinel CLI client

curl --silent https://raw.githubusercontent.com/sentinel-official/cli-client/development/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 os \
        <KEY_NAME>

    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 os \
        --chain-id sentinelhub-2 \
        --node https://rpc.sentinel.co:443 \
        --gas-prices 0.1udvpn \
        --from <KEY_NAME> <NODE_ADDRESS> <DEPOSIT>
  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 <ACCOUNT_ADDRESS>
  5. Connect

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

Disconnect from a dVPN node

  1. Disconnect

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

Click here to know more!

About

The official Sentinel CLI client

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 98.5%
  • Other 1.5%