Akash Guidebook
Search
K
Links

Configure your Network

First configure the base URL ($AKASH_NET) for the Akash Network; copy and paste the command below:
AKASH_NET="https://raw.githubusercontent.com/akash-network/net/main/mainnet"

Version

Next configure the version of the Akash Network AKASH_VERSION; copy and paste the command below:
AKASH_VERSION="$(curl -s https://api.github.com/repos/akash-network/provider/releases/latest | jq -r '.tag_name')"

Chain ID

The akash CLI will recogonize AKASH_CHAIN_ID environment variable when exported to the shell.
export AKASH_CHAIN_ID="$(curl -s "$AKASH_NET/chain-id.txt")"

Network Node

You need to select a node on the network to connect to, using an RPC endpoint. To configure theAKASH_NODE environment variable use this export command:
export AKASH_NODE="$(curl -s "$AKASH_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 $AKASH_NODE $AKASH_CHAIN_ID $AKASH_KEYRING_BACKEND
You should see something similar to:
http://135.181.60.250:26657 akashnet-2 os

Set Additional Environment Variables

Set the below set of environment variables to ensure smooth operations
Variable
Description
Recommended Value
AKASH_GAS
Gas limit to set per-transaction; set to "auto" to calculate sufficient gas automatically
auto
AKASH_GAS_ADJUSTMENT
Adjustment factor to be multiplied against the estimate returned by the tx simulation
1.15
AKASH_GAS_PRICES
Gas prices in decimal format to determine the transaction fee
0.025uakt
AKASH_SIGN_MODE
Signature mode
amino-json
export AKASH_GAS=auto
export AKASH_GAS_ADJUSTMENT=1.25
export AKASH_GAS_PRICES=0.025uakt
export AKASH_SIGN_MODE=amino-json

Check your Account Balance

Check your account has sufficient balance by running:
provider-services query bank balances --node $AKASH_NODE $AKASH_ACCOUNT_ADDRESS
You should see a response similar to:
balances:
- amount: "93000637"
denom: uakt
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 uAKT (AKT x 10^-6), in the above example, the account has a balance of 93 AKT. We're now setup to deploy.
Your account must have a minimum balance of 5 AKT to create a deployment. This 5 AKT 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