Created
September 8, 2018 05:14
-
-
Save daiki44/f2eb49a01761e17b147ba30358720c6f to your computer and use it in GitHub Desktop.
【NEM】NEM-sdk を使って特定アドレスへ XEM を送金する ref: https://daiki-sekiguchi.com/2018/09/07/nem-sdk-transactions-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 password = ''; | |
// 送金元の秘密鍵 | |
const privateKey = ''; | |
// パスワードと秘密鍵をセットにしたオブジェクト | |
const common = nem.model.objects.create('common')(password, privateKey); | |
// 署名をしてTransactionを送信する準備を完了する | |
const transactionEntity = await nem.model.transactions.prepare('transferTransaction')(common, transferTransaction, nem.model.network.data.testnet.id); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment