Owners
his document describes how to use Aptos CLI to perform owner operations during validation.
PETRA ON CHROME BROWSER ONLY
The Petra wallet extension is supported only on the Chrome browser. However, the extensions for Brave browser and Kiwi browser and Microsoft Edge browser will also work.
Owner operations with CLI
TESTNET VS MAINNET
The below CLI command examples use mainnet. See the --rest-url value for testnet and devnet in Aptos Blockchain Deployments.
Initialize CLI
Initialize CLI with your Petra wallet private key or create new wallet.
aptos init --profile mainnet-owner \ --rest-url https://fullnode.mainnet.aptoslabs.com/v1You can either enter the private key from an existing wallet, or create new wallet address.
Initialize staking pool
aptos stake initialize-stake-owner \ --initial-stake-amount 100000000000000 \ --operator-address <operator-address> \ --voter-address <voter-address> \ --profile mainnet-ownerTransfer coin between accounts
aptos account transfer \ --account <operator-address> \ --amount <amount> \ --profile mainnet-ownerSwitch operator
aptos stake set-operator \ --operator-address <new-operator-address> \ --profile mainnet-ownerSwitch voter
Add stake
Increase stake lockup
Unlock stake
Withdraw stake
Last updated