@arkade-os/sdk Documentation - v0.4.0-next.8
    Preparing search index...

    Class Packet

    Packet represents a collection of asset groups. It encodes/decodes as raw bytes only — OP_RETURN framing is handled by the Extension module.

    Implements

    • ExtensionPacket
    Index

    Properties

    groups: AssetGroup[]
    PACKET_TYPE: 0

    PACKET_TYPE is the 1-byte TLV type tag used in the Extension envelope.

    Methods

    • serialize encodes the packet as raw bytes (varint group count + group data). Does NOT include OP_RETURN, ARK magic, or TLV type/length — those are added by the Extension module.

      Returns Uint8Array

    • type returns the TLV packet type tag. Implements ExtensionPacket interface.

      Returns number