Skip to main content

sdk.tap.burnAsset(assetId, amountToBurn, note)

Parameters:

  • assetId: A string of the hex encoded asset ID of the asset to burn units of.
  • amountToBurn: The number of asset units to burn. This must be greater than zero.
  • note: (optional) A note that may contain user defined metadata related to this burn.

Return Value:

The value is of taprpc.BurnAssetResponse which is defined here: https://lightning.engineering/api-docs/api/taproot-assets/taproot-assets/burn-asset/#taprpcburnassetresponse