Create a Supra Account

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

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:

supra profile new accountA <PRIVATE_KEY> --network testnet

Additional Commands

Modify the profile: supra profile modify

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>
Change the active profile: supra profile activate

CLI commands will be executed from the active profile.

To activate another profile, use the following command:

supra profile activate accountA
View stored profile public keys: supra profile -l

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
View stored profile private keys: supra profile -l -r

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

supra profile -l -r

Last updated