@arkade-os/sdk Documentation - v0.4.21
    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

    • Convert the packet into the batch-leaf form for a specific intent transaction id.

      Parameters

      • intentTxid: Uint8Array

      Returns Packet

    • serialize encodes the packet as raw bytes (varint group count + group data). Does NOT include OP_RETURN, Arkade magic bytes (ARK), 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