2.2.6.6. [アーカイブ] mijin Catapult(v.2) 手数料ありモード有効時の残高アカウントの残高移動¶
警告
注釈
- 作成日:
2022/8/1
- 更新日:
2023/1/17
2.2.6.6.1. 残高あるアカウントの確認¶

{
"address": "MAL4SPKWUI3WGSNOWSDA3KKIBJG7QHMCXD7GZVA",
"public_key": "FDA90ACB0B4DA564FBA3D9D3A3E67A7146A77D2F5C246BC67AC044AAD578E161",
"private_key": "F36139408F597D2F0DA0C5E3CB1162E3D80EFEF188E21089284F57723676CC5C"
},
2.2.6.6.2. 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
2.2.6.6.3. 残高アカウントのインポート¶
項目 |
説明 |
値 |
Select the network type |
ネットワークを指定して下さい。
構築時に指定したCatapultNetworkの値
|
MIJIN/MIJIN_TEST |
Enter the Symbol node URL. |
Cloudformation Stack内にあるOutoutsタブのmijinLBENdpointまたはmijinEndpointのURLを指定します。 |
|
Enter a profile name |
アカウントを呼び出すプロファイル名を 指定します。 |
任意 |
Enter your wallet password |
アカウントのパスワードを指定します |
任意 |
Do you want to set the account as the default profile? |
このアカウントをDefaultで使うかどうかを指定します。 |
任意 |
Select an import type |
再度保存するためのインポート方法を指定します。 |
PrivateKey |
Enter your account private key |
nemesis_addresses_harvesting.json の private_key を指定します。 |
任意 ここでは、F3613で始まる値 |
$ symbol-cli profile import
✔ Select the network type: › MIJIN
✔ Enter the Symbol node URL. (Example: http://localhost:3000): … http://xxxxxxxxxxxxxxxxxxxxx.elb.ap-northeast-1.amazonaws.com:3000
✔ Enter a profile name: … mijin-have-currency-account
✔ 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 │ MAL4SP-KWUI3W-GSNOWS-DA3KKI-BJG7QH-MCXD7G-ZVA │
├───────────────┼──────────────────────────────────────────────────────────────────────┤
│ Public Key │ FDA90ACB0B4DA564FBA3D9D3A3E67A7146A77D2F5C246BC67AC044AAD578E161 │
├───────────────┼──────────────────────────────────────────────────────────────────────┤
│ Private Key │ F36139408F597D2F0DA0C5E3CB1162E3D80EFEF188E21089284F57723676CC5C │
├───────────────┼──────────────────────────────────────────────────────────────────────┤
│ Password │ Test1234 │
└───────────────┴──────────────────────────────────────────────────────────────────────┘
SUCCESS Stored mijin-have-currency-account profile
警告
基軸通貨のMosaic Idはデプロイ時に作成されるため、同じIDでないことに注意してください。
$ symbol-cli account info --profile mijin-have-currency-account
⠸ Processing
Account Information
┌───────────────────┬──────────────────────────────────────────────────────────────────┐
│ Property │ Value │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Address │ MAL4SP-KWUI3W-GSNOWS-DA3KKI-BJG7QH-MCXD7G-ZVA │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Address Height │ 1 │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Public Key │ FDA90ACB0B4DA564FBA3D9D3A3E67A7146A77D2F5C246BC67AC044AAD578E161 │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Public Key Height │ 1 │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Importance │ 2850000 │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Importance Height │ 2600 │
└───────────────────┴──────────────────────────────────────────────────────────────────┘
Balance Information
┌──────────────────┬─────────────────┬──────────────────┬───────────────────┐
│ Mosaic Id │ Relative Amount │ Absolute Amount │ Expiration Height │
├──────────────────┼─────────────────┼──────────────────┼───────────────────┤
│ 1D8350FA8D4830FA │ 1,799,799,999.6 │ 1799799999600000 │ Never │
├──────────────────┼─────────────────┼──────────────────┼───────────────────┤
│ 01964E14621F06F6 │ 3,000 │ 3000000 │ Never │
└──────────────────┴─────────────────┴──────────────────┴───────────────────┘
2.2.6.6.4. 新規アカウントの作成¶
項目 |
説明 |
値 |
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を指定します。 |
|
Enter a profile name |
アカウントを呼び出すプロファイル名を 指定します。 |
任意 |
Enter your wallet password |
アカウントのパスワードを指定します |
任意 |
$ 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-no-currency-account
✔ Enter your wallet password: … ********
✔ Do you want to set the account as the default profile? … no
Account
┌───────────────┬──────────────────────────────────────────────────────────────────────┐
│ Property │ Value │
├───────────────┼──────────────────────────────────────────────────────────────────────┤
│ Address │ MADIFG-N27CKA-6DY42J-UMEFJA-7OKXLO-NXLAEQ-XII │
├───────────────┼──────────────────────────────────────────────────────────────────────┤
│ Public Key │ B86CDD63C3BA820C4659CF7FC3D53DA035CF8370AC3E0DBF025BEE691AED7DFA │
├───────────────┼──────────────────────────────────────────────────────────────────────┤
│ Private Key │ E911E779671BD33B26A9D424DB331A36BDD497BA62D91B27ADAA4B1350A52D43 │
├───────────────┼──────────────────────────────────────────────────────────────────────┤
│ Password │ Test1234 │
└───────────────┴──────────────────────────────────────────────────────────────────────┘
SUCCESS Stored mijin-no-currency-account profile
$ symbol-cli account info --profile mijin-no-currency-account
ERR {"statusCode":404,"statusMessage":"Not Found","body":"{\"code\":\"ResourceNotFound\",\"message\":\"no resource exists with id 'MADIFGN27CKA6DY42JUMEFJA7OKXLONXLAEQXII'\"}"}
TIP The account has to receive at least one transaction to be recorded on the network
2.2.6.6.5. 残高の移動¶
項目 |
説明 |
値 |
Enter your wallet password |
設定したパスワードを指定してください |
任意 |
Mosaics to transfer in the format (mosaicId(hex)|@aliasName)::absoluteAmount |
基軸通貨(cat.currency)を10万送ります。 基軸通貨は可分性が6のため6桁小数点があるため、0を6足します。 |
3BF3AF8B22CB53D8::1 |
Enter the recipient address or @alias |
新規アカウントの転送先アドレスを指定します |
MADIFGN27CKA6DY42JUMEFJA7OKXLONXLAEQXII |
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-have-currency-account
✔ 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::100000000000
✔ Enter the recipient address or @alias: … MADIFGN27CKA6DY42JUMEFJA7OKXLONXLAEQXII
✔ Enter a message: … test
✔ Enter the maximum fee (absolute amount): … 200000
✔ Select the transaction announce mode: › normal
┌──────────────────────────────────────────────────────────────────────────────────┐
│ TRANSFER │
├───────────────┬──────────────────────────────────────────────────────────────────┤
│ Max fee: │ 200,000 │
├───────────────┼──────────────────────────────────────────────────────────────────┤
│ Network type: │ MIJIN │
├───────────────┼──────────────────────────────────────────────────────────────────┤
│ Deadline: │ 2022-10-01 23:57:37.489 │
├───────────────┼──────────────────────────────────────────────────────────────────┤
│ Recipient: │ MADIFG-N27CKA-6DY42J-UMEFJA-7OKXLO-NXLAEQ-XII │
├───────────────┼──────────────────────────────────────────────────────────────────┤
│ Message: │ test │
├───────────────┼──────────────────────────────────────────────────────────────────┤
│ Mosaic (1/1): │ 100,000,000,000 cat.currency (85BBEA6CC462B244) │
├───────────────┴──────────────────────────────────────────────────────────────────┤
│ Signature details │
├───────────────┬──────────────────────────────────────────────────────────────────┤
│ Payload: │ B500000000000000496383B0C2AF6B3295D615336F48B2C299AAF38619399C40 │
│ │ 85AC7F6CF58092EAE743D5C754DC3C149E4E5EFA8E6038519F8BAAFDDF3B05BC │
│ │ 41B355638528AE03FDA90ACB0B4DA564FBA3D9D3A3E67A7146A77D2F5C246BC6 │
│ │ 7AC044AAD578E1610000000001605441400D030000000000517F484B18000000 │
│ │ 60068299BAF8940F0F1CD268C21520FB9575B9B758090BA10500010000000000 │
│ │ 44B262C46CEABB8500E87648170000000074657374 │
├───────────────┼──────────────────────────────────────────────────────────────────┤
│ Hash: │ 24FACA961CB1DF4D3F76DFFBE302D2CAA512F7D1BD424CC4E0D14ACFA7221FA4 │
├───────────────┼──────────────────────────────────────────────────────────────────┤
│ Signer: │ FDA90ACB0B4DA564FBA3D9D3A3E67A7146A77D2F5C246BC67AC044AAD578E161 │
└───────────────┴──────────────────────────────────────────────────────────────────┘
✔ 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'
$ symbol-cli account info --profile mijin-no-currency-account
⠹ Processing
Account Information
┌───────────────────┬──────────────────────────────────────────────────────────────────┐
│ Property │ Value │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Address │ MADIFG-N27CKA-6DY42J-UMEFJA-7OKXLO-NXLAEQ-XII │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Address Height │ 2706 │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Public Key │ 0000000000000000000000000000000000000000000000000000000000000000 │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Public Key Height │ 0 │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Importance │ 0 │
├───────────────────┼──────────────────────────────────────────────────────────────────┤
│ Importance Height │ 0 │
└───────────────────┴──────────────────────────────────────────────────────────────────┘
Balance Information
┌──────────────────┬─────────────────┬─────────────────┬───────────────────┐
│ Mosaic Id │ Relative Amount │ Absolute Amount │ Expiration Height │
├──────────────────┼─────────────────┼─────────────────┼───────────────────┤
│ 1D8350FA8D4830FA │ 100,000 │ 100000000000 │ Never │
└──────────────────┴─────────────────┴─────────────────┴───────────────────┘