Post
Share your knowledge.
Converting Sui Wallet private key to bech32 format?
I'm trying to convert the private key of my Sui wallet to the bech32 format. How should I go about it using CLI tools?
- Sui
Answers
3Hey there! Sui addresses are already in bech32 format by default. If you have your private key (like a mnemonic phrase) and want to get its corresponding Sui address: First, import your private key into your Sui client's keystore using the sui keytool import command. For example, with a mnemonic: sui keytool import "your twelve word mnemonic phrase here" After importing, just run sui keytool list. This will show all the keys in your keystore along with their Sui addresses, which will be in the bech32 format you're looking for. Just find the one associated with the key you just imported!
Check the documentation here: https://docs.sui.io/references/cli/keytool. You can download the CLI and use the command sui keytool convert to convert your private key to the latest format.
Do you know the answer?
Please log in and share it.
Sui is a Layer 1 protocol blockchain designed as the first internet-scale programmable blockchain platform.
- How to Maximize Profit Holding SUI: Sui Staking vs Liquid Staking616
- Why does BCS require exact field order for deserialization when Move structs have named fields?65
- Multiple Source Verification Errors" in Sui Move Module Publications - Automated Error Resolution55
- Sui Move Error - Unable to process transaction No valid gas coins found for the transaction419
- Sui Transaction Failing: Objects Reserved for Another Transaction410