Creating an account

Create a new Bitxor account to start sending and receiving transactions.

Prerequisites

Method #01: Using the Desktop Wallet

  1. Open up the Bitxor Desktop Wallet application and click on Create a new profile?.

    resources/images/screenshots/desktop-create-account-0.png
  2. Click on Create Mnemonic.

    resources/images/screenshots/desktop-create-account-1.png
  3. Fill in some profile data. A profile can contain several Bitxor accounts and it helps keeping them organized.

    resources/images/screenshots/desktop-create-account-2.png
    • Give your profile a name, for your personal use.

    • Select the Mainnet Network type.

    • Enter a password to protect your profile and confirm it.

    • Enter a hint to help you remember your password, should you forget it.

    • Click on Next.

  4. On the next page, the Desktop Wallet uses the movement of your mouse to generate a random mnemonic phrase for your wallet.

    resources/images/screenshots/desktop-create-account-3.png

    Move your mouse around the screen until the progress bar reaches 100% and the application automatically moves you to the next page.

  5. Click Display mnemonic words to view your private mnemonic phrase.

    resources/images/screenshots/desktop-create-account-4.png
  6. Click on the copy button.

    resources/images/screenshots/desktop-create-account-5.png

    Backup this information securely offline and do not share it with anyone, as it stores the key to recover your assets. Click Next.

  7. Verify that you have backed up your mnemonic phrase correctly. Click each word in the phrase in the correct order. Click Next when done.

    resources/images/screenshots/desktop-create-account-6.png
  8. Read the safety tips on the next page.

    resources/images/screenshots/desktop-create-account-7.png

    Accept the Terms and Conditions and click on Finish:

  1. The Wallet’s main screen will appear. Congratulations! Your account is ready to use.

    resources/images/screenshots/desktop-create-account-8.png

Method #02: Using the SDK

Open a new file and run the following code snippet. Edit NetworkType.TEST_NET to select the correct network type for your desired purpose.

const account = Account.generateNewAccount(NetworkType.TEST_NET);
console.log(
  'Your new account address is:',
  account.address.pretty(),
  'and its private key',
  account.privateKey,
);
const account = bitxor_sdk_1.Account.generateNewAccount(
  bitxor_sdk_1.NetworkType.TEST_NET,
);
console.log(
  'Your new account address is:',
  account.address.pretty(),
  'and its private key',
  account.privateKey,
);
        final Account account = Account.generateNewAccount(NetworkType.TEST_NET);

        System.out.printf("Your new account address is: %s and its private key: %s",
            account.getAddress().plain(), account.getPrivateKey());

If you already have a private key, you can use it to define a new Account object.

// replace with private key
const privateKey =
  '0000000000000000000000000000000000000000000000000000000000000000';

const account = Account.createFromPrivateKey(privateKey, NetworkType.TEST_NET);
console.log(
  'Your account address is:',
  account.address.pretty(),
  'and its private key',
  account.privateKey,
);
// replace with private key
const privateKey =
  '0000000000000000000000000000000000000000000000000000000000000000';
const account = bitxor_sdk_1.Account.createFromPrivateKey(
  privateKey,
  bitxor_sdk_1.NetworkType.TEST_NET,
);
console.log(
  'Your account address is:',
  account.address.pretty(),
  'and its private key',
  account.privateKey,
);
        // Replace with a private key
        final String privateKey = "0000000000000000000000000000000000000000000000000000000000000000";
        final Account account = Account.createFromPrivateKey(privateKey, NetworkType.TEST_NET);

        System.out.printf("Your account address is: %s and its private key: %s",
            account.getAddress().plain(), account.getPrivateKey());

Method #03: Using the CLI

Open a terminal window and run the following command.

bitxor-cli account generate