Created
August 3, 2018 11:00
-
-
Save xpdlf1004/43d1f7e6a2a2f126181500236b1cec8f to your computer and use it in GitHub Desktop.
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
var parcel = sdk.core.createChangeShardStateParcel({ transactions: [assetMintTransaction] }); | |
sdk.rpc.chain.sendParcel(parcel, { | |
account: "cccqzn9jjm3j6qg69smd7cn0eup4w7z2yu9myd6c4d7", | |
passphrase: "satoshi" | |
}).then(function (parcelHash) { | |
return sdk.rpc.chain.getParcelInvoice(parcelHash, { | |
timeout: 120 * 1000 | |
}); | |
}).then(function (invoice) { | |
console.log(invoice); // [{ success: true }] | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment