Ah, no, skip the python. This method is all done with the official incognito cli.
If you have not installed it, you can just follow the steps in this post.
My steps for staking a new node are as follows.
- Create a keychain in the App
- Copy the Private Key from the App
incognito-cli keyinfo -p <PrivateKey>
incognito-cli --host http://localhost:9334 sub --otaKey <OTA key>
- Transfer PRV into the keychain
incognito-cli --host http://localhost:9334 stake --rewardAddress 12sxgCWK... -p <Private Key>
If you’re not running your own full node, you can skip the --host part and it will run on the public incognito node.
For restaking, you skip 1 and unstake at 5 and wait for the funds instead. The important part is submitting your otaKey before funds enter the account. Otherwise, the full node will not have cached the balance.
(step 3 is only to avoid having to copy the OTA key from the App as well.)