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/mainnet"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_BACKENDYou should see something similar to:
http://135.181.60.250:26657 nexqloudnet-2 os
Set Additional Environment Variables
Set the below set of environment variables to ensure smooth operations
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-jsonCheck your Account Balance
Check your account has sufficient balance by running:
provider-services query bank balances --node $NEXQLOUD_NODE $NEXQLOUD_ACCOUNT_ADDRESSYou should see a response similar to:
balances:
- amount: "93000637"
denom: unxq
pagination:
next_key: null
total: "0"If you don't have a balance, please see the funding guide. Please note the balance indicated is denominated in uNXQ (NXQ x 10^-6), in the above example, the account has a balance of 93 NXQ. We're now setup to deploy.
Last updated