Skip to content

Instantly share code, notes, and snippets.

@KardanovIR
Created June 9, 2020 13:40
Show Gist options
  • Select an option

  • Save KardanovIR/e6d6d061975f1fbf0f76b6356b565fb8 to your computer and use it in GitHub Desktop.

Select an option

Save KardanovIR/e6d6d061975f1fbf0f76b6356b565fb8 to your computer and use it in GitHub Desktop.
const adminSeed = '...';
const issueTx = issue({
name: `Thanks`,
description: 'Say thank you to all of your teammates in Slack. By Billy.',
decimals: 0,
quantity: 100000000,
reissuable: false
}, adminSeed);
await broadcast(issueTx);
await waitForTx(issueTx.id);
const sponsorshipTx = sponsorship({
assetId: issueTx.id,
minSponsoredAssetFee: 1
}, adminSeed);
await broadcast(sponsorshipTx);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment