Neutrome SDK reference
    Preparing search index...

    Function decodeAttachment

    • Decodes an attachment stored in a program buffer.

      Parameters

      • buffer: Uint8Array<ArrayBufferLike> | undefined

        Buffer holding the encoded attachment.

      • kind: AttachmentKind

        Kind implied by the referencing opcode.

      Returns Attachment | null

      The attachment, or null when the buffer is missing or malformed.