$ export AKASH_NODE=http://localhost:26657 # or an remote RPC you have access to
$ export AKASH_CHAIN_ID=akashnet-2
$ export ACCOUNT_ADDRESS=<your_addr> # akash1t...
$ export KEYRING_BACKEND=file # you might need to change this depending on your OS
$ export KEY_NAME=<your_key>
$ akash query bank balances --node $AKASH_NODE $ACCOUNT_ADDRESS
<aside>
💡 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.
</aside>
# First you need to create a certificate
$ akash tx cert create client --chain-id $AKASH_CHAIN_ID --keyring-backend $KEYRING_BACKEND --from $KEY_NAME --node $AKASH_NODE --fees 5000uakt
# Then download the deployment.yaml template from here
$ wget <https://raw.githubusercontent.com/jim380/certik-on-akash/master/sdl/deployment.yaml>
# Finally you deploy it
$ akash tx deployment create deployment.yaml --from $KEY_NAME --node $AKASH_NODE --chain-id $AKASH_CHAIN_ID --fees 5000uakt --keyring-backend $KEYRING_BACKEND -y
In the returned output, look for the following:
{"key":"dseq","value":"534409"},{"key":"gseq","value":"1"},{"key":"oseq","value":"1"}]}
And note down your own dseq
, oseq
and gsep
numbers.
$ export DSEQ=<your_dseq> && export OSEQ=<your_oseq> && export GSEQ=<your_gseq>
# Verify deployment creation
$ akash query deployment get --owner $ACCOUNT_ADDRESS --node $AKASH_NODE --dseq $DSEQ
# Verify order creation
$ akash query market order get --node $AKASH_NODE --owner $ACCOUNT_ADDRESS --dseq $DSEQ --oseq $OSEQ --gseq $GSEQ
Now that you have successfully created a deployment, let's see if anybody has placed a bid on it.
$ akash query market bid list --owner=$ACCOUNT_ADDRESS --node $AKASH_NODE --dseq $DSEQ
In the returned output, look for the following:
- bid:
bid_id:
dseq: "534409"
gseq: 1
oseq: 1
owner: akash1vn06ycjjnvsvl639fet9lajjctuturrtx7fvuj
provider: akash10cl5rm0cqnpj45knzakpa4cnvn5amzwp4lhcal
created_at: "140326"
price:
amount: "1"
denom: uakt
state: open
escrow_account:
balance:
amount: "50000000"
denom: uakt
id:
scope: bid
xid: akash1vn06ycjjnvsvl639fet9lajjctuturrtx7fvuj/140324/1/1/akash10cl5rm0cqnpj45knzakpa4cnvn5amzwp4lhcal
owner: akash10cl5rm0cqnpj45knzakpa4cnvn5amzwp4lhcal
settled_at: "140326"
state: open
transferred:
amount: "0"
denom: uakt
And note down your provider.