Skip to content

Instantly share code, notes, and snippets.

@xpdlf1004
Created August 3, 2018 11:00
Show Gist options
  • Save xpdlf1004/43d1f7e6a2a2f126181500236b1cec8f to your computer and use it in GitHub Desktop.
Save xpdlf1004/43d1f7e6a2a2f126181500236b1cec8f to your computer and use it in GitHub Desktop.
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