3.2.3. [アーカイブ] mijinアカウント作成(>=1.0.0.0)

本章では、mijinを操作するために、必ず必要となるアカウント操作について説明します。

警告

symbol-cliは アーカイブ化 されたため、symbol-cliは使用できない可能性があります。
1.0.3.4以降は、 mijinアカウント作成 を参照してください。

注釈

mijin Catapult(v.2) を操作するにはアカウントを作成し、そのアカウントを使ってトランザクションを送信します。
また、デプロイ時の指定で手数料ありモードの場合は、アカウントに基軸通貨(cat.currency)の残高を持つ必要があることに注意してください。
作成日:

2022/8/1

更新日:

2023/1/17

3.2.3.1. symbol-cliのインストール

npmよりsymbol-cliをインストールします。

$ sudo npm i -g symbol-cli@1.0.0
/usr/local/bin/symbol-cli -> /usr/local/lib/node_modules/symbol-cli/bin/symbol-cli
+ symbol-cli@1.0.0
updated 1 package in 8.724s

3.2.3.2. アカウントの作成

まずは、テストで使用する2つのアカウントを作成してみましょう。

項目

説明

Select the network type

ネットワークを指定して下さい。
構築時に指定したCatapultNetworkの値

MIJIN/MIJIN_TEST

Do you want to save the account?

このアカウントを保存します。

yes

Select an import type

再度保存するためのインポート方法を指定します。

PrivateKey

Enter the Symbol node URL.

Cloudformation Stack内にあるOutoutsタブのmijinLBENdpointまたはmijinEndpointのURLを指定します。

<http://xxxxxxx:300>

Enter a profile name

アカウントを呼び出すプロファイル名を 指定します。

任意

Enter your wallet password

アカウントのパスワードを指定します

任意

3.2.3.2.1. 一つ目のアカウント(Profile mijin-a)作成

$ symbol-cli account generate

? Select the network type: › - Use arrow-keys. Return to submit.
✔ Select the network type: › MIJIN
✔ Do you want to save the account? … yes
✔ Select an import type: › PrivateKey
✔ Enter the Symbol node URL. (Example: http://localhost:3000): … http://xxxxxxxxxxxxxxxxxxxxx.elb.ap-northeast-1.amazonaws.com:3000
✔ Enter a profile name: … mijin-a
✔ Enter your wallet password: … ********
✔ Do you want to set the account as the default profile? … yes

Account
┌───────────────┬──────────────────────────────────────────────────────────────────────┐
│ Property      │ Value                                                                │
├───────────────┼──────────────────────────────────────────────────────────────────────┤
│ Address       │ MA36BR-7DCFZT-65BQZP-TM5QND-EZKSB7-HNE4DU-6TI                        │
├───────────────┼──────────────────────────────────────────────────────────────────────┤
│ Public Key    │ 707902962A0A2E32226243D1E7B98D2DD40261E9D3649543E7C28A0F024D4A38     │
├───────────────┼──────────────────────────────────────────────────────────────────────┤
│ Private Key   │ 2515EDCAAA3985F30D6E758ED139823290DAB11034BF4113849FF5CB9355B9C9     │
├───────────────┼──────────────────────────────────────────────────────────────────────┤
│ Password      │ Test1234                                                             │
└───────────────┴──────────────────────────────────────────────────────────────────────┘

SUCCESS Stored mijin-a profile
この時点でmijin-aのアカウントを確認しても、存在しないことになっています。
ブロックチェーン上で、このアドレスのやり取りがないため、存在を確認できないからです。
$ symbol-cli account info --profile mijin-a
⠋ Processing(node:7718) [DEP0091] DeprecationWarning: crypto.DEFAULT_ENCODING is deprecated.
(node:7718) [DEP0010] DeprecationWarning: crypto.createCredentials is deprecated. Use tls.createSecureContext instead.
(node:7718) [DEP0011] DeprecationWarning: crypto.Credentials is deprecated. Use tls.SecureContext instead.

ERR {"statusCode":404,"statusMessage":"Not Found","body":"{\"code\":\"ResourceNotFound\",\"message\":\"no resource exists with id 'MA36BR7DCFZT65BQZPTM5QNDEZKSB7HNE4DU6TI'\"}"}

TIP The account has to receive at least one transaction to be recorded on the network

3.2.3.2.2. 2つ目のアカウント(Profile mijin-b)作成

$ symbol-cli account generate

✔ Select the network type: › MIJIN
✔ Do you want to save the account? … yes
✔ Select an import type: › PrivateKey
✔ Enter the Symbol node URL. (Example: http://localhost:3000): … http://xxxxxxxxxxxxxxxxxxxxx.elb.ap-northeast-1.amazonaws.com:3000
✔ Enter a profile name: … mijin-b
✔ Enter your wallet password: … ********
✔ Do you want to set the account as the default profile? … no

Account
┌───────────────┬──────────────────────────────────────────────────────────────────────┐
│ Property      │ Value                                                                │
├───────────────┼──────────────────────────────────────────────────────────────────────┤
│ Address       │ MCLO63-LBWG6V-PLJD4O-MADZ37-W6QXQE-DPC3H3-EGQ                        │
├───────────────┼──────────────────────────────────────────────────────────────────────┤
│ Public Key    │ 2D2AC0FF30FABEFC12CB3FBB2323F8CD079ED1055FAAF2581CA29697130292FA     │
├───────────────┼──────────────────────────────────────────────────────────────────────┤
│ Private Key   │ 654065E33D00446F1FAAF2CF7D72CC287BDD91E55E9489AEC42769EDDB7A9759     │
├───────────────┼──────────────────────────────────────────────────────────────────────┤
│ Password      │ Test1234                                                             │
└───────────────┴──────────────────────────────────────────────────────────────────────┘

SUCCESS Stored mijin-b profile

1つ目と同じで、mijin-bアカウントは存在しません。

$ symbol-cli account info --profile mijin-b

⠋ Processing(node:53) [DEP0091] DeprecationWarning: crypto.DEFAULT_ENCODING is deprecated.
(node:53) [DEP0010] DeprecationWarning: crypto.createCredentials is deprecated. Use tls.createSecureContext instead.
(node:53) [DEP0011] DeprecationWarning: crypto.Credentials is deprecated. Use tls.SecureContext instead.

ERR {"statusCode":404,"statusMessage":"Not Found","body":"{\"code\":\"ResourceNotFound\",\"message\":\"no resource exists with id 'MCLO63LBWG6VPLJD4OMADZ37W6QXQEDPC3H3EGQ'\"}"}

TIP The account has to receive at least one transaction to be recorded on the network

3.2.3.2.3. 手数料について

手数料とは、以下の項目で発行するトランザクションによって手数料が発生し、基軸通貨(cat.currency)にて支払う必要があります。

  • トランザクション手数料

  • Mosaicレンタル手数料

  • Namespaceレンタル手数料

  • ロック保証金

マーケットプレイスで提供する mijin では手数料モードは標準で なし に設定されています。
手数料なしでは、アカウントに基軸通貨の残高を持つ必要がありませんので特に意識することはありませんが、<span style="color: #d61b09">symbol-cliやsdkにて手数料設定を都度 0 を設定する必要があります。</span>
手数料ありでmijinを作成した場合は、「手数料ありモード時の、基軸通貨の移動方法」の項目を参照し、Profile mijin-aに基軸通貨を送信してください。

3.2.3.3. Mosaicを作成し転送

まずは基本となるMosaicを作成し、転送してみましょう。

3.2.3.3.1. Mosaicの作成

Profile mijin-a のアカウントにて 1amountのMosaic(Token) を発行します。

項目

説明

Enter your wallet password

設定したパスワードを指定してください

任意

Do you want a non-expiring mosaic

Mosaicの期限を指定するか、無期限かを指定します。Yesで無期限にします。

yes

Enter the mosaic divisibility

Mosaicの可分性を指定します。0でなしにします。

0

Do you want this mosaic to have a mutable supply?

Mosaicの最大発行数を変更できるようにするかを指定します。なしにします。

no

Do you want this mosaic to be transferable?

Mosaicの転送を許可するか指定します。

yes

Do you want this mosaic to be restrictable?

Mosaicの制限を許可するか指定します。

yes

Amount of mosaics units to create

Mosaicの発行数を指定します。ここでは1で発行します、

1

Enter the maximum fee (absolute amount)

トランザクション手数料を指定します。これは手数料モードで変わります。
手数料あり 20000程度(0.2cat.currency)
手数料なし 0

0

Select the transaction announce mode

トランザクションをアナウンスする方法を指定します。

normal

$ symbol-cli transaction mosaic --profile mijin-a

✔ Enter your wallet password: … ********
✔ Do you want a non-expiring mosaic? … yes
✔ Enter the mosaic divisibility: … 0
✔ Do you want this mosaic to have a mutable supply? … no
✔ Do you want this mosaic to be transferable? … yes
✔ Do you want this mosaic to be restrictable? … yes
✔ Amount of mosaics units to create:  … 1
✔ Enter the maximum fee (absolute amount): … 0
✔ Select the transaction announce mode: › normal
┌───────────────────────────────────────────────────────────────────────────────────────────────────────┐
│                                          AGGREGATE_COMPLETE                                           │
├────────────────────────────────────┬──────────────────────────────────────────────────────────────────┤
│ Max fee:                           │ 0                                                                │
├────────────────────────────────────┼──────────────────────────────────────────────────────────────────┤
│ Network type:                      │ MIJIN                                                            │
├────────────────────────────────────┼──────────────────────────────────────────────────────────────────┤
│ Deadline:                          │ 2021-05-14 17:58:15.159                                          │
├────────────────────────────────────┴──────────────────────────────────────────────────────────────────┤
│                             Inner transaction 1 of 2 - MOSAIC_DEFINITION                              │
├────────────────────────────────────┬──────────────────────────────────────────────────────────────────┤
│ [Inner tx. 1 of 2] Mosaic Id:      │ 3BF3AF8B22CB53D8                                                 │
├────────────────────────────────────┼──────────────────────────────────────────────────────────────────┤
│ [Inner tx. 1 of 2] Duration:       │ unlimited                                                        │
├────────────────────────────────────┼──────────────────────────────────────────────────────────────────┤
│ [Inner tx. 1 of 2] Divisibility:   │ 0                                                                │
├────────────────────────────────────┼──────────────────────────────────────────────────────────────────┤
│ [Inner tx. 1 of 2] Supply mutable: │ false                                                            │
├────────────────────────────────────┼──────────────────────────────────────────────────────────────────┤
│ [Inner tx. 1 of 2] Transferable:   │ true                                                             │
├────────────────────────────────────┼──────────────────────────────────────────────────────────────────┤
│ [Inner tx. 1 of 2] Restrictable:   │ true                                                             │
├────────────────────────────────────┴──────────────────────────────────────────────────────────────────┤
│                            Inner transaction 2 of 2 - MOSAIC_SUPPLY_CHANGE                            │
├────────────────────────────────────┬──────────────────────────────────────────────────────────────────┤
│ [Inner tx. 2 of 2] Mosaic Id:      │ 3BF3AF8B22CB53D8                                                 │
├────────────────────────────────────┼──────────────────────────────────────────────────────────────────┤
│ [Inner tx. 2 of 2] Direction:      │ Increase supply                                                  │
├────────────────────────────────────┼──────────────────────────────────────────────────────────────────┤
│ [Inner tx. 2 of 2] Delta:          │ 1                                                                │
├────────────────────────────────────┴──────────────────────────────────────────────────────────────────┤
│                                           Signature details                                           │
├────────────────────────────────────┬──────────────────────────────────────────────────────────────────┤
│ Payload:                           │ 380100000000000076353CE0DE61D35A10F020EEBE3D7147333BD7DDAD879CB4 │
│                                    │ 4796094426212D48261A7AC3F57B944AB18BDC17B512734EF1F3F1718B204C0F │
│                                    │ 918CE5E5951CB40D707902962A0A2E32226243D1E7B98D2DD40261E9D3649543 │
│                                    │ E7C28A0F024D4A380000000001604141000000000000000077FF53210E000000 │
│                                    │ A0689F32062556F27B4A6AE80321FD59CF38F0183760C186D2ADF751E6E1405C │
│                                    │ 90000000000000004600000000000000707902962A0A2E32226243D1E7B98D2D │
│                                    │ D40261E9D3649543E7C28A0F024D4A380000000001604D41D853CB228BAFF33B │
│                                    │ 0000000000000000CBAC2CAB060000004100000000000000707902962A0A2E32 │
│                                    │ 226243D1E7B98D2DD40261E9D3649543E7C28A0F024D4A380000000001604D42 │
│                                    │ D853CB228BAFF33B01000000000000000100000000000000                 │
├────────────────────────────────────┼──────────────────────────────────────────────────────────────────┤
│ Hash:                              │ DBE41DC36C55471BB9D850970A8A07F585A57BFFC09419893E49281B5674B034 │
├────────────────────────────────────┼──────────────────────────────────────────────────────────────────┤
│ Signer:                            │ 707902962A0A2E32226243D1E7B98D2DD40261E9D3649543E7C28A0F024D4A38 │
└────────────────────────────────────┴──────────────────────────────────────────────────────────────────┘
✔ Do you want to announce this transaction? … yes

SUCCESS Transaction announced correctly

TIP To check if the network confirms or rejects the transaction, run the command 'symbol-cli transaction status'

再度`mijin-a`のアカウントを確認すると、Balance Informationにて、MosaicId 3BF3AF8B22CB53D8 を1だけ持っていることが確認できます。

$ symbol-cli account info --profile mijin-a

⠋ Processing(node:7795) [DEP0091] DeprecationWarning: crypto.DEFAULT_ENCODING is deprecated.
(node:7795) [DEP0010] DeprecationWarning: crypto.createCredentials is deprecated. Use tls.createSecureContext instead.
(node:7795) [DEP0011] DeprecationWarning: crypto.Credentials is deprecated. Use tls.SecureContext instead.
⠸ Processing
Account Information
┌───────────────────┬──────────────────────────────────────────────────────────────────┐
│ Property          │ Value                                                            │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Address           │ MA36BR-7DCFZT-65BQZP-TM5QND-EZKSB7-HNE4DU-6TI                    │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Address Height    │ 959                                                              │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Public Key        │ 707902962A0A2E32226243D1E7B98D2DD40261E9D3649543E7C28A0F024D4A38 │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Public Key Height │ 959                                                              │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Importance        │ 0                                                                │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Importance Height │ 0                                                                │
└───────────────────┴──────────────────────────────────────────────────────────────────┘
Balance Information
┌──────────────────┬─────────────────┬─────────────────┬───────────────────┐
│ Mosaic Id        │ Relative Amount │ Absolute Amount │ Expiration Height │
├──────────────────┼─────────────────┼─────────────────┼───────────────────┤
│ 3BF3AF8B22CB53D8 │ 11               │ Never             │
└──────────────────┴─────────────────┴─────────────────┴───────────────────┘

3.2.3.3.2. Mosaicを転送する

先程作成したMosaic 3BF3AF8B22CB53D8 をProfile mijin-a から mijin-b に転送します。

項目

Mosaic

3BF3AF8B22CB53D8

転送amount

1

転送先アドレス(Profile mijin-bのアドレス)

MCLO63-LBWG6V-PLJD4O-MADZ37-W6QXQE-DPC3H3-EGQ

項目

説明

Enter your wallet password

設定したパスワードを指定してください

任意

Mosaics to transfer in the format (mosaicId(hex)|@aliasName)::absoluteAmount

転送するモザイクID(またはエイリアス)にコロンを二つ追加した後、転送amountを指定します。

3BF3AF8B22CB53D8::1

Enter the recipient address or @alias

転送先アドレスを指定します

MCLO63-LBWG6V-PLJD4O-MADZ37-W6QXQE-DPC3H3-EGQ

Enter a message

転送トランザクションにメッセージを追加できます

任意

Enter the maximum fee (absolute amount)

トランザクション手数料を指定します。これは手数料モードで変わります。
手数料あり 20000程度(0.2cat.currency)
手数料なし 0

0

Select the transaction announce mode

トランザクションをアナウンスする方法を指定します。

normal

$ symbol-cli transaction transfer --profile mijin-a

? Enter your wallet password: › (node:97) [DEP0091] DeprecationWarning: crypto.DEFAULT_ENCODING is deprecated.
(node:97) [DEP0010] DeprecationWarning: crypto.createCredentials is deprecated. Use tls.createSecureContext instead.
(node:97) [DEP0011] DeprecationWarning: crypto.Credentials is deprecated. Use tls.SecureContext instead.
✔ Enter your wallet password: … ********
✔ Mosaics to transfer in the format (mosaicId(hex)|@aliasName)::absoluteAmount, (Ex: sending 1 symbol.xym, @symbol.xym::1000000). Add multiple mosaics separated by commas: … 3BF3AF8B22CB53D8::1
✔ Enter the recipient address or @alias: … MCLO63-LBWG6V-PLJD4O-MADZ37-W6QXQE-DPC3H3-EGQ
✔ Enter a message: …
✔ Enter the maximum fee (absolute amount): … 0
✔ Select the transaction announce mode: › normal
┌──────────────────────────────────────────────────────────────────────────────────┐
│                                     TRANSFER                                     │
├───────────────┬──────────────────────────────────────────────────────────────────┤
│ Max fee:      │ 0                                                                │
├───────────────┼──────────────────────────────────────────────────────────────────┤
│ Network type: │ MIJIN                                                            │
├───────────────┼──────────────────────────────────────────────────────────────────┤
│ Deadline:     │ 2021-05-17 16:40:45.212                                          │
├───────────────┼──────────────────────────────────────────────────────────────────┤
│ Recipient:    │ MCLO63-LBWG6V-PLJD4O-MADZ37-W6QXQE-DPC3H3-EGQ                    │
├───────────────┼──────────────────────────────────────────────────────────────────┤
│ Message:      │ N/A                                                              │
├───────────────┼──────────────────────────────────────────────────────────────────┤
│ Mosaic (1/1): │ 1 3BF3AF8B22CB53D8                                               │
├───────────────┴──────────────────────────────────────────────────────────────────┤
│                                Signature details                                 │
├───────────────┬──────────────────────────────────────────────────────────────────┤
│ Payload:      │ B000000000000000639B3F893989DC69FA3DF8D9BA294FD787F7644D68918FA8 │
│               │ F5E6A5162FE57CD34B03E944AA48F4B22790A50ECEA4A130EBB89299BDB173A4 │
│               │ 556BBAFF8092A20B707902962A0A2E32226243D1E7B98D2DD40261E9D3649543 │
│               │ E7C28A0F024D4A38000000000160544100000000000000009C1F80300E000000 │
│               │ 6096EF6D61B1BD57AD23E39801E77FB7A178106F16CFB21A0000010000000000 │
│               │ D853CB228BAFF33B0100000000000000                                 │
├───────────────┼──────────────────────────────────────────────────────────────────┤
│ Hash:         │ 0CAB966B0E7090AA19AE4D4F2BD2334A7F7466E5661107A15F8831EA48A5CE88 │
├───────────────┼──────────────────────────────────────────────────────────────────┤
│ Signer:       │ 707902962A0A2E32226243D1E7B98D2DD40261E9D3649543E7C28A0F024D4A38 │
└───────────────┴──────────────────────────────────────────────────────────────────┘
✔ Do you want to announce this transaction? … yes

SUCCESS Transaction announced correctly

TIP To check if the network confirms or rejects the transaction, run the command 'symbol-cli transaction status'
Profile mijin-a の状態を確認します。
Mosaic 3BF3AF8B22CB53D8 を持っていないことを確認できます。
symbol-cli account info --profile mijin-a
⠋ Processing(node:108) [DEP0091] DeprecationWarning: crypto.DEFAULT_ENCODING is deprecated.
(node:108) [DEP0010] DeprecationWarning: crypto.createCredentials is deprecated. Use tls.createSecureContext instead.
(node:108) [DEP0011] DeprecationWarning: crypto.Credentials is deprecated. Use tls.SecureContext instead.
⠸ Processing
Account Information
┌───────────────────┬──────────────────────────────────────────────────────────────────┐
│ Property          │ Value                                                            │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Address           │ MA36BR-7DCFZT-65BQZP-TM5QND-EZKSB7-HNE4DU-6TI                    │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Address Height    │ 959                                                              │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Public Key        │ 707902962A0A2E32226243D1E7B98D2DD40261E9D3649543E7C28A0F024D4A38 │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Public Key Height │ 959                                                              │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Importance        │ 0                                                                │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Importance Height │ 0                                                                │
└───────────────────┴──────────────────────────────────────────────────────────────────┘
続いて、Profile mijin-b の状態を確認します。
Mosaic 3BF3AF8B22CB53D8 を所有していることが確認できます。
symbol-cli account info --profile mijin-b
⠋ Processing(node:119) [DEP0091] DeprecationWarning: crypto.DEFAULT_ENCODING is deprecated.
(node:119) [DEP0010] DeprecationWarning: crypto.createCredentials is deprecated. Use tls.createSecureContext instead.
(node:119) [DEP0011] DeprecationWarning: crypto.Credentials is deprecated. Use tls.SecureContext instead.
⠹ Processing
Account Information
┌───────────────────┬──────────────────────────────────────────────────────────────────┐
│ Property          │ Value                                                            │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Address           │ MCLO63-LBWG6V-PLJD4O-MADZ37-W6QXQE-DPC3H3-EGQ                    │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Address Height    │ 17912                                                            │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Public Key        │ 0000000000000000000000000000000000000000000000000000000000000000 │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Public Key Height │ 0                                                                │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Importance        │ 0                                                                │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Importance Height │ 0                                                                │
└───────────────────┴──────────────────────────────────────────────────────────────────┘
Balance Information
┌──────────────────┬─────────────────┬─────────────────┬───────────────────┐
│ Mosaic Id        │ Relative Amount │ Absolute Amount │ Expiration Height │
├──────────────────┼─────────────────┼─────────────────┼───────────────────┤
│ 3BF3AF8B22CB53D8 │ 11               │ Never             │
└──────────────────┴─────────────────┴─────────────────┴───────────────────┘

3.2.3.4. (番外)手数料ありモード時の、基軸通貨の移動方法

手数料ありモードでmijinを作成した場合、トランザクション送信などに全て基軸通貨から手数料が取られるようになります。
そのため、アカウント作成時に基軸通貨の残高を送信する手順を説明します。

3.2.3.4.1. 基軸通貨の保持アカウント登録

注釈

AWS Marketplaceの | mijin | を使用した場合、AWS Cloudformation Stack内にあるOutoutsタブを選択します。
Key「mijinLBEndpint」又は「mijinbEndpoint」のURLを控えてください。
次に、Key「HarvestAddress」のValueのURLをクリックしてください。
apiの中にある一番はじめのVauleにあるprivate_keyの値を控えてください。(ここでは055Eで始まる値)

symbol-cliにて上記のprivate_keyをimportします。

項目

入力値

Select the network type

ネットワークを指定して下さい。
構築時に指定したCatapultNetworkの値
MIJIN/MIJIN_TEST

Enter the Symbol node URL

控えていた「mijinEndpint」もしくはロードバランサーが有効であれば「mijinLBEndpoint」のURLを入力

Enter a profile name

任意のプロファイル名を入力

Enter your wallet password

任意のパスワードを入力

Do you want to set the account as the default profile

DefaultProfileにするかどうか、ここではYesを選択

Select an import type

PrivateKey

Enter your account private key

控えていたprivate_keyを入力

$ symbol-cli profile import

✔ Select the network type: › MIJIN
✔ Enter the Symbol node URL. (Example: http://localhost:3000): … http://MIJIN-CATAPULT-E1-nlb-rest-XXXXXXXXX.elb.ap-northeast-1.amazonaws.com:3000
✔ Enter a profile name: … mijin-harvest
✔ Enter your wallet password: … ********
✔ Do you want to set the account as the default profile? … no
✔ Select an import type: › PrivateKey
✔ Enter your account private key: … ****************************************************************

Account
┌───────────────┬──────────────────────────────────────────────────────────────────────┐
│ Property      │ Value                                                                │
├───────────────┼──────────────────────────────────────────────────────────────────────┤
│ Address       │ MAQUY5-KOJVPE-DDCTD6-3SZYHM-EQOFF4-HTUYZU-3WQ                        │
├───────────────┼──────────────────────────────────────────────────────────────────────┤
│ Public Key    │ 29800CB9DF988622AD4B940F578569321F4B7F08127C478A0C0C28ACC61B8A2C     │
├───────────────┼──────────────────────────────────────────────────────────────────────┤
│ Private Key   │ 2EC8FF52B5B922E0F509FBEE6CE3C4B3512E9347DB800A76A6EF993C43C0D5BC     │
├───────────────┼──────────────────────────────────────────────────────────────────────┤
│ Password      │ Test1234                                                             │
└───────────────┴──────────────────────────────────────────────────────────────────────┘

SUCCESS Stored mijin-harvest profile
これでインポートすることができました。
アカウントの情報を確認します。
このアカウントでは、初期時2つのMosaicを持っています。
Balance Informationの 04A125F887094D2A が 基軸通貨(cat.currency)となり、 49DB43B9FA374EF2 はHarvest有効用のMosaicです。

警告

このIDは作成毎に違う値になり、基軸通貨はAmountが大きいIDとなります。

$ symbol-cli account info --profile mijin-harvest

⠋ Processing(node:141) [DEP0091] DeprecationWarning: crypto.DEFAULT_ENCODING is deprecated.
(node:141) [DEP0010] DeprecationWarning: crypto.createCredentials is deprecated. Use tls.createSecureContext instead.
(node:141) [DEP0011] DeprecationWarning: crypto.Credentials is deprecated. Use tls.SecureContext instead.
⠸ Processing
Account Information
┌───────────────────┬──────────────────────────────────────────────────────────────────┐
│ Property          │ Value                                                            │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Address           │ MAQUY5-KOJVPE-DDCTD6-3SZYHM-EQOFF4-HTUYZU-3WQ                    │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Address Height    │ 1                                                                │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Public Key        │ 29800CB9DF988622AD4B940F578569321F4B7F08127C478A0C0C28ACC61B8A2C │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Public Key Height │ 1                                                                │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Importance        │ 2850000                                                          │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Importance Height │ 18080                                                            │
└───────────────────┴──────────────────────────────────────────────────────────────────┘
Balance Information
┌──────────────────┬─────────────────┬──────────────────┬───────────────────┐
│ Mosaic Id        │ Relative Amount │ Absolute Amount  │ Expiration Height │
├──────────────────┼─────────────────┼──────────────────┼───────────────────┤
│ 04A125F887094D2A │ 1,799,799,999.6 │ 1799799999600000 │ Never             │
├──────────────────┼─────────────────┼──────────────────┼───────────────────┤
│ 49DB43B9FA374EF2 │ 3,000           │ 3000000          │ Never             │
└──────────────────┴─────────────────┴──────────────────┴───────────────────┘

3.2.3.4.2. 基軸通貨の確認

項目

説明

Enter the mosaic id in hexadecimal format

モザイクIDを指定することで対象モザイクの情報を取得できます

ここでは
04A125F887094D2A
Divisibilityにて可分性が確認できます。
以下では可分性が 6 となります。
symbol-cli mosaic info
? Enter the mosaic id in hexadecimal format: › (node:163) [DEP0091] DeprecationWarning: crypto.DEFAULT_ENCODING is deprecated.
(node:163) [DEP0010] DeprecationWarning: crypto.createCredentials is deprecated. Use tls.createSecureContext instead.
(node:163) [DEP0011] DeprecationWarning: crypto.Credentials is deprecated. Use tls.SecureContext instead.
✔ Enter the mosaic id in hexadecimal format: … 04A125F887094D2A

Mosaic Information
┌───────────────────┬───────────────────────────────────────────────┐
│ Property          │ Value                                         │
├───────────────────┼───────────────────────────────────────────────┤
│ Record Id         │ 609DEB554D4B851AA429AE2C                      │
├───────────────────┼───────────────────────────────────────────────┤
│ Mosaic Id         │ 04A125F887094D2A                              │
├───────────────────┼───────────────────────────────────────────────┤
│ Divisibility      │ 6                                             │
├───────────────────┼───────────────────────────────────────────────┤
│ Transferable      │ true                                          │
├───────────────────┼───────────────────────────────────────────────┤
│ Supply Mutable    │ false                                         │
├───────────────────┼───────────────────────────────────────────────┤
│ Height            │ 1                                             │
├───────────────────┼───────────────────────────────────────────────┤
│ Expiration        │ Never                                         │
├───────────────────┼───────────────────────────────────────────────┤
│ Owner             │ MAO5AR-GSMLGK-ZCDV35-IJWDVL-JFOCZT-XHM3KJ-RHA │
├───────────────────┼───────────────────────────────────────────────┤
│ Supply (Absolute)8998999998000000                              │
├───────────────────┼───────────────────────────────────────────────┤
│ Supply (Relative)8,998,999,998                                 │
└───────────────────┴───────────────────────────────────────────────┘

3.2.3.4.3. 基軸通貨を送信する

登録したアカウント(Profile mijin-a )に対して、基軸通貨を 1000cat.currency を送信してみます。

項目

Mosaic

cat.currency

転送amount

1000000000(可分性が6なので1000.000000)

転送先アドレス(Profile mijin-a)

MA36BR-7DCFZT-65BQZP-TM5QND-EZKSB7-HNE4DU-6TI

項目

説明

Enter your wallet password

設定したパスワードを指定してください

任意

Mosaics to transfer in the format (mosaicId(hex)|@aliasName)::absoluteAmount

転送するモザイクID(またはエイリアス)にコロンを二つ追加した後、転送amountを指定します。

@cat.currency::1000000000

Enter the recipient address or @alias

転送先アドレスを指定します

MA36BR-7DCFZT-65BQZP-TM5QND-EZKSB7-HNE4DU-6TI

Enter a message

転送トランザクションにメッセージを追加できます

任意

Enter the maximum fee (absolute amount)

トランザクション手数料を指定します。これは手数料モードで変わります。
手数料あり 20000程度(0.2cat.currency)
手数料なし 0

0

Select the transaction announce mode

トランザクションをアナウンスする方法を指定します。

normal

ここではトランザクション手数料を0にしていますが、手数料ありの場合、トランザクション手数料がかかりますので 0 ではなく、 200000 程度必要になります。
手数料の計算方法は、Symbolと同様となります。

<https://docs.symbol.dev/concepts/fees.html#transaction-fee>

$ symbol-cli transaction transfer --profile mijin-harvest

? Enter your wallet password: › (node:196) [DEP0091] DeprecationWarning: crypto.DEFAULT_ENCODING is deprecated.
(node:196) [DEP0010] DeprecationWarning: crypto.createCredentials is deprecated. Use tls.createSecureContext instead.
(node:196) [DEP0011] DeprecationWarning: crypto.Credentials is deprecated. Use tls.SecureContext instead.
✔ Enter your wallet password: … ********
✔ Mosaics to transfer in the format (mosaicId(hex)|@aliasName)::absoluteAmount, (Ex: sending 1 symbol.xym, @symbol.xym::1000000). Add multiple mosaics separated by commas: … @cat.currency::1000000000
✔ Enter the recipient address or @alias: … MA36BR-7DCFZT-65BQZP-TM5QND-EZKSB7-HNE4DU-6TI
✔ Enter a message: …
✔ Enter the maximum fee (absolute amount): … 0
✔ Select the transaction announce mode: › normal
┌──────────────────────────────────────────────────────────────────────────────────┐
│                                     TRANSFER                                     │
├───────────────┬──────────────────────────────────────────────────────────────────┤
│ Max fee:      │ 0                                                                │
├───────────────┼──────────────────────────────────────────────────────────────────┤
│ Network type: │ MIJIN                                                            │
├───────────────┼──────────────────────────────────────────────────────────────────┤
│ Deadline:     │ 2021-05-17 17:46:42.643                                          │
├───────────────┼──────────────────────────────────────────────────────────────────┤
│ Recipient:    │ MA36BR-7DCFZT-65BQZP-TM5QND-EZKSB7-HNE4DU-6TI                    │
├───────────────┼──────────────────────────────────────────────────────────────────┤
│ Message:      │ N/A                                                              │
├───────────────┼──────────────────────────────────────────────────────────────────┤
│ Mosaic (1/1): │ 1,000,000,000 cat.currency (85BBEA6CC462B244)                    │
├───────────────┴──────────────────────────────────────────────────────────────────┤
│                                Signature details                                 │
├───────────────┬──────────────────────────────────────────────────────────────────┤
│ Payload:      │ B00000000000000071E0E34240C563025C466C31BFA995D6DA4CADFFB0AD29A3 │
│               │ B2EFF280AD596BDA4CF5DC01B3654D9C34F56346B5DF41112EF27858C0ED1FCE │
│               │ CF409B5A450FC30E29800CB9DF988622AD4B940F578569321F4B7F08127C478A │
│               │ 0C0C28ACC61B8A2C000000000160544100000000000000005382BC300E000000 │
│               │ 6037E0C7E311733F7430CBE6CEC1A3265520FCED27074F4D0000010000000000 │
│               │ 44B262C46CEABB8500CA9A3B00000000                                 │
├───────────────┼──────────────────────────────────────────────────────────────────┤
│ Hash:         │ 864EF99D58E8DA837879D85DE08DF29398766E04F967F09732A2FD02115469FB │
├───────────────┼──────────────────────────────────────────────────────────────────┤
│ Signer:       │ 29800CB9DF988622AD4B940F578569321F4B7F08127C478A0C0C28ACC61B8A2C │
└───────────────┴──────────────────────────────────────────────────────────────────┘
✔ Do you want to announce this transaction? … yes

SUCCESS Transaction announced correctly

TIP To check if the network confirms or rejects the transaction, run the command 'symbol-cli transaction status'
Profile mijin-a のアカウントを確認します。
1000cat.currencyを持っていることを確認できます。
symbol-cli account info --profile mijin
⠋ Processing(node:207) [DEP0091] DeprecationWarning: crypto.DEFAULT_ENCODING is deprecated.
(node:207) [DEP0010] DeprecationWarning: crypto.createCredentials is deprecated. Use tls.createSecureContext instead.
(node:207) [DEP0011] DeprecationWarning: crypto.Credentials is deprecated. Use tls.SecureContext instead.
⠸ Processing
Account Information
┌───────────────────┬──────────────────────────────────────────────────────────────────┐
│ Property          │ Value                                                            │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Address           │ MA36BR-7DCFZT-65BQZP-TM5QND-EZKSB7-HNE4DU-6TI                    │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Address Height    │ 959                                                              │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Public Key        │ 707902962A0A2E32226243D1E7B98D2DD40261E9D3649543E7C28A0F024D4A38 │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Public Key Height │ 959                                                              │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Importance        │ 0                                                                │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Importance Height │ 0                                                                │
└───────────────────┴──────────────────────────────────────────────────────────────────┘
Balance Information
┌──────────────────┬─────────────────┬─────────────────┬───────────────────┐
│ Mosaic Id        │ Relative Amount │ Absolute Amount │ Expiration Height │
├──────────────────┼─────────────────┼─────────────────┼───────────────────┤
│ 04A125F887094D2A │ 1,000           │ 1000000000      │ Never             │
└──────────────────┴─────────────────┴─────────────────┴───────────────────┘