@arkade-os/sdk Documentation - v0.5.0-rc.11
    Preparing search index...

    Class AssetGroup

    An asset group contains inputs, outputs, and all data related to a given asset id.

    • Packet
    • AssetId
    • AssetRef
    const group = AssetGroup.create(
    null, // asset ID: null for new issuance
    null, // control asset ID: null when reissuance not needed
    [], // asset inputs: empty for new issuance
    [AssetOutput.create(0, 1000)], // asset outputs: 1000 units at vout index 0
    [] // metadata: can be empty
    )
    Index

    Constructors

    Properties

    assetId: AssetId | null
    controlAsset: AssetRef | null
    inputs: AssetInput[]
    outputs: AssetOutput[]

    Methods

    • Return true when the group represents a reissuance.

      Returns boolean

      true when the group has an asset id and outputs exceed local inputs

      Only local inputs contribute to the comparison; intent-backed inputs contribute 0 here.