Owners

his document describes how to use Aptos CLIarrow-up-right to perform owner operations during validation.

PETRA ON CHROME BROWSER ONLY

The Petra wallet extensionarrow-up-right is supported only on the Chrome browser. However, the extensions for Brave browserarrow-up-right and Kiwi browserarrow-up-right and Microsoft Edge browserarrow-up-right will also work.

Owner operations with CLIarrow-up-right

TESTNET VS MAINNET

The below CLI command examples use mainnet. See the --rest-url value for testnet and devnet in Aptos Blockchain Deploymentsarrow-up-right.

Initialize CLIarrow-up-right

Initialize CLI with your Petra wallet private key or create new wallet.

aptos init --profile mainnet-owner \  --rest-url https://fullnode.mainnet.aptoslabs.com/v1

You can either enter the private key from an existing wallet, or create new wallet address.

Initialize staking poolarrow-up-right

aptos stake initialize-stake-owner \  --initial-stake-amount 100000000000000 \  --operator-address <operator-address> \  --voter-address <voter-address> \  --profile mainnet-owner

Transfer coin between accountsarrow-up-right

aptos account transfer \  --account <operator-address> \  --amount <amount> \  --profile mainnet-owner

Switch operatorarrow-up-right

aptos stake set-operator \  --operator-address <new-operator-address> \   --profile mainnet-owner

Switch voterarrow-up-right

Increase stake lockuparrow-up-right

Unlock stakearrow-up-right

Withdraw stakearrow-up-right

Last updated