githubEdit

Create a Supra Account

Generate a key profile and view the public/private keys for use by the Supra CLI.

triangle-exclamation
1

Generate a new key/profile

Execute the following command to generate a new profile/set of keys.

execute me!
supra profile new accountA --network testnet
2

Or Import an existing key/profile

If you already have a private key on hand that you wish to use, you can opt to import it rather than generating a new one. To import an existing private key, use the following command:

circle-exclamation
supra profile new accountA <PRIVATE_KEY> --network testnet

Additional Commands

chevron-rightModify the profile: supra profile modifyhashtag

The new version of profiles contain the rpc_url, faucet_url, and chain_id associated with the profile. CLI commands will use the stored values of the calling profile for the respective command parameters unless manually overwritten. The above commands to create a new profile or import an existing profile will set the initial values to that of the testnet. If you wish to use the profile on mainnet, you must modify the profile with the mainnet values. To modify a profile, use the following command with the desired network:

supra profile modify accountA --network <localnet/testnet/mainnet/custom>
chevron-rightChange the active profile: supra profile activatehashtag
circle-info

CLI commands will be executed from the active profile.

To activate another profile, use the following command:

supra profile activate accountA
chevron-rightView stored profile public keys: supra profile -lhashtag
circle-info

The active profile will be displayed with a (*) by the profile name.

If you wish to view existing keys within your current directory, use the following command:

supra profile -l
chevron-rightView stored profile private keys: supra profile -l -rhashtag
triangle-exclamation

If you wish to view the private key of your profile(s), use the following command:

supra profile -l -r

Last updated