アカウントの作成

トランザクションの送信と受信をするために、新しい Symbol アカウントを作成します。

前提条件

方法 #01: デスクトップウォレットを使用する

  1. デスクトップウォレット アプリケーションを開き、 「ニーモニックの作成」 ボタンを押下します。
../../_images/desktop-create-account-1.gif

2. Enter your profile information, including your profile name, network type and password. Select the correct network type for your desired purpose. Once you have filled out the page with the appropriate information, click 「Next」.

../../_images/desktop-create-account-2.gif

3. On the next page, the Desktop Wallet uses the movement of your mouse cursor to generate a random mnemonic passphrase for your wallet. Shift your mouse around the screen until the progress bar reaches 100% and the application automatically moves you to the next page.

../../_images/desktop-create-account-3.gif
  1. Click 「Display mnemonic words」 to view your private passphrase. Backup this information securely offline and do not share it with anyone, as it stores the key to recover your assets. Click 「Next」.
  2. ニーモニックパスフレーズをバックアップしたことを確認します。正しい順序でパスフレーズをクリックします。 「次へ」 クリックします。
../../_images/desktop-create-account-4.gif
  1. Read the safety tips on the next page and click 「Next」. Congratulations, your account is ready for use!

方法 #02: 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 = symbol_sdk_1.Account.generateNewAccount(symbol_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());

既に秘密鍵を持っている場合は、それを使用して Account オブジェクトを定義することができます。

// 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 = symbol_sdk_1.Account.createFromPrivateKey(privateKey, symbol_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());

方法 #03: CLI を使用する

Open a terminal window and run the following command.

symbol-cli account generate