Relevant Commands and Example Use

Authorize Another Wallet to Deploy Using Your Tokens

Description

Authorize a “deploy wallet” to receive a specified amount of funds from a “funding wallet”
The command must be executed from a machine that has access to the funding wallet’s private key (I.e. access to private-key in local key-chain).
NOTE - two wallets will be necessary to test Authorized Spend.

Syntax

  • Replace wallet placeholders with actual addresses
1
akash tx deployment authz grant <deploy-wallet> <fund-amount> --from <funding-wallet>
Copied!

Example Use

1
akash tx deployment authz grant akash17ck7uhkpjjj45fw9s9vpv7jn0m97958vjjxmf8 20000000uakt --from akash10x24jqyplwk37nynqy0pqaez5sx9fqrll59hl9
Copied!

View Authorizations Created

Description

To view wallets authorized to spend from the funding wallet

Syntax

1
akash query authz grants <funding-wallet> <deploy-wallet>
Copied!

Example Use

1
akash query authz grants akash10x24jqyplwk37nynqy0pqaez5sx9fqrll59hl9 akash17ck7uhkpjjj45fw9s9vpv7jn0m97958vjjxmf8
Copied!

Expected Output

1
[email protected]:/home/ubuntu# akash query authz grants akash10x24jqyplwk37nynqy0pqaez5sx9fqrll59hl9 akash17ck7uhkpjjj45fw9s9vpv7jn0m97958vjjxmf8
2
3
grants:
4
- authorization:
5
'@type': /akash.deployment.v1beta2.DepositDeploymentAuthorization
6
spend_limit:
7
amount: "20000000"
8
denom: uakt
9
expiration: "2023-01-20T16:04:02Z"
10
pagination:
11
next_key: null
12
total: "0"
Copied!

Change Amount of Authorized Funds

Description

To change the amount of an authorized funds

Syntax

1
akash tx deployment authz grant <deploy-wallet> <fund-amount> --from <funding-wallet> --gas-prices="0.025uakt" --gas="auto" --gas-adjustment=1.5 -y
Copied!

Example Use

1
akash tx deployment authz grant akash17ck7uhkpjjj45fw9s9vpv7jn0m97958vjjxmf8 10000000uakt --from akash10x24jqyplwk37nynqy0pqaez5sx9fqrll59hl9 --gas-prices="0.025uakt" --gas="auto" --gas-adjustment=1.5 -y
Copied!

Create a Deployment from Authorized Funds

Description

Use the funds from the authorizers wallet to create a deployment. Please note that the deployment wallet needs some minimal, additional AKT to cover gas costs.
NOTE - only the creation deployment step is covered in this section. Please refer to our Getting Started with Testnet documentation for additional steps in creating a deployment.

Syntax

1
akash tx deployment create --depositor-account <funding-wallet> --from <deploy-wallet> deploy.yaml --gas-prices="0.025uakt" --gas="auto" --gas-adjustment=1.5 -y
Copied!

Example Use

1
akash tx deployment create --depositor-account akash10x24jqyplwk37nynqy0pqaez5sx9fqrll59hl9 --from akash17ck7uhkpjjj45fw9s9vpv7jn0m97958vjjxmf8 deploy.yaml --gas-prices="0.025uakt" --gas="auto" --gas-adjustment=1.5 -y
Copied!

Deposit Additional Funds to Deployment

Description

Deposit additional funds into the escrow account of a running deployment from the funding wallet

Syntax

1
akash tx deployment deposit <fund-amount> --dseq <deployment-id> --from <deploy-wallet> -–depositor-account <funding-wallet> --gas-prices="0.025uakt" --gas="auto" --gas-adjustment=1.5 -y
Copied!

Example Use

1
akash tx deployment deposit 10000000uakt --dseq 19012 --from akash17ck7uhkpjjj45fw9s9vpv7jn0m97958vjjxmf8 --depositor-account akash10x24jqyplwk37nynqy0pqaez5sx9fqrll59hl9 --gas-prices="0.025uakt" --gas="auto" --gas-adjustment=1.5 -y
Copied!

Revoke Access to a Deploy Wallet

Description

Revoke the authorization from a funding wallet

Syntax

1
akash tx deployment authz revoke <deploy-wallet> --from <funding-wallet>
Copied!

Example Use

1
akash tx deployment authz revoke akash17ck7uhkpjjj45fw9s9vpv7jn0m97958vjjxmf8 --from akash10x24jqyplwk37nynqy0pqaez5sx9fqrll59hl9
Copied!