Configure your Network

First configure the base URL ($NEXQLOUD_NET) for the Nexqloud Network; copy and paste the command below:

NEXQLOUD_NET="https://raw.githubusercontent.com/nexqloud-network/net/main/sandbox"

Version

Next configure the version of the Nexqloud Network NEXQLOUD_VERSION; copy and paste the command below:

NEXQLOUD_VERSION="$(curl -s https://api.github.com/repos/nexqloud-network/provider/releases/latest | jq -r '.tag_name')"

Chain ID

The nexqloud CLI will recogonize NEXQLOUD_CHAIN_ID environment variable when exported to the shell.

export NEXQLOUD_CHAIN_ID="$(curl -s "$NEXQLOUD_NET/chain-id.txt")"

Network Node

You need to select a node on the network to connect to, using an RPC endpoint. To configure theNEXQLOUD_NODE environment variable use this export command:

export NEXQLOUD_NODE="$(curl -s "$NEXQLOUD_NET/rpc-nodes.txt" | shuf -n 1)"

Confirm your network variables are setup

Your values may differ depending on the network you're connecting to.

echo $NEXQLOUD_NODE $NEXQLOUD_CHAIN_ID $NEXQLOUD_KEYRING_BACKEND

You should see something similar to:

https://rpc.sandbox-01.aksh.pw:443 sandbox-01 os

Set Additional Environment Variables

Set the below set of environment variables to ensure smooth operations

Variable
Description
Recommended Value

NEXQLOUD_GAS

Gas limit to set per-transaction; set to "auto" to calculate sufficient gas automatically

auto

NEXQLOUD_GAS_ADJUSTMENT

Adjustment factor to be multiplied against the estimate returned by the tx simulation

1.15

NEXQLOUD_GAS_PRICES

Gas prices in decimal format to determine the transaction fee

0.025unxq

NEXQLOUD_SIGN_MODE

Signature mode

amino-json

export NEXQLOUD_GAS=auto
export NEXQLOUD_GAS_ADJUSTMENT=1.25
export NEXQLOUD_GAS_PRICES=0.025unxq
export NEXQLOUD_SIGN_MODE=amino-json

Check your Account Balance

Check your account has sufficient balance by running:

provider-services query bank balances --node $NEXQLOUD_NODE $NEXQLOUD_ACCOUNT_ADDRESS

You should see a response similar to:

balances:
- amount: "25000000"
  denom: unxq
pagination:
  next_key: null
  total: "0"

Please note the balance indicated is denominated in uNXQ (NXQ x 10^-6), in the above example, the account has a balance of 25 NXQ. We're now setup to deploy.

Your account must have a minimum balance of 5 NXQ to create a deployment. This 5 NXQ funds the escrow account associated with the deployment and is used to pay the provider for their services. It is recommended you have more than this minimum balance to pay for transaction fees. For more information on escrow accounts, see here

Last updated