his document describes how to use to perform owner operations during validation.
PETRA ON CHROME BROWSER ONLY
The is supported only on the Chrome browser. However, the extensions for and and 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 .
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/v1
You 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-owner
Transfer coin between accounts
aptos account transfer \ --account <operator-address> \ --amount <amount> \ --profile mainnet-owner
Switch operator
aptos stake set-operator \ --operator-address <new-operator-address> \ --profile mainnet-owner
aptos stake set-delegated-voter \ --voter-address <new-voter-address> \ --profile mainnet-owner
aptos stake add-stake \ --amount <amount> \ --profile mainnet-owner
aptos stake increase-lockup --profile mainnet-owner
aptos stake unlock-stake \ --amount <amount> \ --profile mainnet-owner
aptos stake withdraw-stake \ --amount <amount> \ --profile mainnet-owner