Created
September 8, 2018 10:26
-
-
Save daiki44/979f3a0ed57a7d729c09fbf130653bc9 to your computer and use it in GitHub Desktop.
【NEM】NEM-sdk を使って特定アドレスへ モザイク を送金する ref: https://daiki-sekiguchi.com/2018/09/08/nem-sdk-mosaic-transaction-send/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 送金先のアドレス | |
const toAddress = 'TAHPGS7CKZAERDU5RGHRCGN4DYGXRLQXO5CPNWIP'; | |
// 送金額 | |
const sendAmount = 1; | |
// 送金の際に指定するメッセージ(空文字でも可) | |
const sendMsg = 'Hello World!'; | |
// Transactionの作成 | |
let transferTransaction = nem.model.objects.create('transferTransaction')(toAddress, sendAmount, sendMsg); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment