Setup
Load the mnemonic you stored when you created your wallet, for example from an environment variable. In Node.js, also passstorage 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 arebigint 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: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.