Skip to main content

Setup

Load the mnemonic you stored when you created your wallet, for example from an environment variable. In Node.js, also pass storage to Wallet.create.

Reissue

To reissue, the asset must have been issued with a control asset, and your wallet must hold that control asset. The SDK finds the control asset from the asset ID:
reissue adds amount to the supply. An asset issued with 500 units has a supply of 800 after this call. reissue throws Asset <id> is not reissuable if the asset has no control asset, and Insufficient asset balance if your wallet does not hold the control asset. The control asset stays in your wallet, so you can reissue again while you hold it.

Burn

Burning permanently destroys units of an asset.
Burning the control asset permanently disables reissuance for all assets it controls. This action is irreversible.
Pass the asset ID and the number of units to burn:
If your wallet held 1000 units, it holds 600 after this call, and the asset’s supply drops by 400. To burn the whole spendable balance of an asset, pass its entry from availableAssets: