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
Ensure that
unxqis used as denomination for thefund-amountand as shown inExample Use.
provider-services tx deployment authz grant <deploy-wallet> <fund-amount> --from <funding-wallet>Example Use
provider-services tx deployment authz grant nexqloud17ck7uhkpjjj45fw9s9vpv7jn0m97958vjjxmf8 20000000unxq --from nexqloud10x24jqyplwk37nynqy0pqaez5sx9fqrll59hl9View Authorization Created - Specific Deploy Wallet
Description
To view details for a specific deploy wallet authorization from a specified funding wallet.
Syntax
provider-services query authz grants <funding-wallet> <deploy-wallet>Example Use
provider-services query authz grants nexqloud10x24jqyplwk37nynqy0pqaez5sx9fqrll59hl9 nexqloud17ck7uhkpjjj45fw9s9vpv7jn0m97958vjjxmf8Expected Output
root@ip-10-0-10-95:/home/ubuntu# nexqloud query authz grants nexqloud10x24jqyplwk37nynqy0pqaez5sx9fqrll59hl9 nexqloud17ck7uhkpjjj45fw9s9vpv7jn0m97958vjjxmf8
grants:
- authorization:
'@type': /nexqloud.deployment.v1beta2.DepositDeploymentAuthorization
spend_limit:
amount: "20000000"
denom: unxq
expiration: "2023-01-20T16:04:02Z"
pagination:
next_key: null
total: "0"View Authorizations Created - All Deploy Wallets
Description
To view ALL wallets authorized to spend from the funding wallet
Syntax
provider-services query authz granter-grants <funding-wallet-address>Example Use
provider-services query authz granter-grants nexqloud10x24jqyplwk37nynqy0pqaez5sx9fqrll59hl9Change Amount of Authorized Funds
Description
To change the amount of an authorized funds
Syntax
provider-services tx deployment authz grant <deploy-wallet> <fund-amount> --from <funding-wallet> --gas-prices="0.025unxq" --gas="auto" --gas-adjustment=1.5 -yExample Use
provider-services tx deployment authz grant nexqloud17ck7uhkpjjj45fw9s9vpv7jn0m97958vjjxmf8 10000000unxq --from nexqloud10x24jqyplwk37nynqy0pqaez5sx9fqrll59hl9 --gas-prices="0.025unxq" --gas="auto" --gas-adjustment=1.5 -yCreate 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 NXQ 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
provider-services tx deployment create --depositor-account <funding-wallet> --from <deploy-wallet> deploy.yaml --gas-prices="0.025unxq" --gas="auto" --gas-adjustment=1.5 -y Example Use
provider-services tx deployment create --depositor-account nexqloud10x24jqyplwk37nynqy0pqaez5sx9fqrll59hl9 --from nexqloud17ck7uhkpjjj45fw9s9vpv7jn0m97958vjjxmf8 deploy.yaml --gas-prices="0.025unxq" --gas="auto" --gas-adjustment=1.5 -yDeposit Additional Funds to Deployment
Description
Deposit additional funds into the escrow account of a running deployment from the funding wallet
Syntax
provider-services tx deployment deposit <fund-amount> --dseq <deployment-id> --from <deploy-wallet> -–depositor-account <funding-wallet> --gas-prices="0.025unxq" --gas="auto" --gas-adjustment=1.5 -yExample Use
provider-services tx deployment deposit 10000000unxq --dseq 19012 --from nexqloud17ck7uhkpjjj45fw9s9vpv7jn0m97958vjjxmf8 --depositor-account nexqloud10x24jqyplwk37nynqy0pqaez5sx9fqrll59hl9 --gas-prices="0.025unxq" --gas="auto" --gas-adjustment=1.5 -yRevoke Access to a Deploy Wallet
Description
Revoke the authorization from a funding wallet
Syntax
provider-services tx deployment authz revoke <deploy-wallet> --from <funding-wallet>Example Use
provider-services tx deployment authz revoke nexqloud17ck7uhkpjjj45fw9s9vpv7jn0m97958vjjxmf8 --from nexqloud10x24jqyplwk37nynqy0pqaez5sx9fqrll59hl9Last updated