Skip to main content
Issue an asset with a fixed supply, or with a control asset that lets you issue more units later. Decide before you issue: you can’t add a control asset or change the metadata after issuance.

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.
Your wallet needs available BTC before it can issue. Each asset sits on a virtual output that also holds BTC. See Receive Payments to fund your wallet.

Issue a Fixed Supply

Pass the number of units to issue. Asset amounts are bigint values in base units:
issue returns the asset ID and the Arkade transaction ID. Wallets and integrators identify the asset by its asset ID. To inspect the transaction, open it in the Arkade explorer for your network: https://arkade.space/tx/<arkTxId> on mainnet, or https://explorer.mutinynet.arkade.sh/tx/<arkTxId> on mutinynet. With no control asset, the supply stays at 1000 units.

Issue with a Control Asset

To keep the option to issue more units, name a control asset at issuance. A control asset is a regular Arkade Asset. Issue it first, then reference it:
While you hold the control asset, you can reissue the main asset. If you send the control asset to another wallet, that wallet can reissue. If you burn it, no one can.

Issue with Metadata

Metadata, such as the name, ticker, and decimals, is set at issuance and can’t change. Asset Metadata explains how the transaction commits to it.

Known Metadata Fields

You can add custom fields. Each value must be a string, a number, or bytes (Uint8Array). getAssetDetails returns the values of custom fields as hex strings. See Read Custom Fields to decode them. To distribute the asset, send it like BTC.