Skip to main content

sdk.tap.increaseAssetSupply(tokenName, decimalDisplay, additionalSupply, metadata, groupKey)

Parameters:

  • tokenName: A string of the hex encoded asset ID of the asset to burn units of.
  • decimalDisplay: (optional) Defualt: 0. This will overwrite prior decimalDisplay used from prior mints. Decimal display dictates the number of decimal places to shift the amount to the left converting from Taproot Asset integer representation to a UX-recognizable fractional quantity. For example, if the decimal_display value is 2 and there's 100 of those assets, then a wallet would display the amount as "1.00". This field is intended as information for wallets that display balances and has no impact on the behavior of the daemon or any other part of the protocol. This value is encoded in the MetaData field as a JSON field, therefore it is only compatible with assets that have a JSON MetaData field.
  • additionalSupply: The total amount of units of the new asset that should be created.
  • metadata: (optional) This will overwrite prior metadata used from prior mints. The raw data of the asset meta data, structured as json. The size of the data is limited to 1MiB. There is no spec to the fields or sturcutirng of this json, but is often used to contain relevant metadata about the token and issuer.
  • groupKey: The specific existing group key this asset should be minted with.

Return Value:

The value is of mintrpc.MintingBatch which is defined here: https://lightning.engineering/api-docs/api/taproot-assets/mint/mint-asset/#mintrpcmintingbatch