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"
brew install v2ray wireguard-tools
or
port install v2ray wireguard-tools
curl --silent https://raw.githubusercontent.com/sentinel-official/cli-client/master/scripts/install.sh | sh
-
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 \ <KEY_NAME>
Pass flag
--recover
to recover the key. -
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
-
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 <KEY_NAME> <NODE_ADDRESS> <DEPOSIT>
-
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>
-
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 <KEY_NAME> <SUBSCRIPTION_ID> <NODE_ADDRESS>
-
Disconnect
sudo sentinelcli disconnect \ --home "${HOME}/.sentinelcli"
Click here to know more!