@arkade-os/sdk Documentation - v0.4.54
    Preparing search index...

    Class Extension

    Extension is a set of typed packets encoded in an OP_RETURN output.

    Wire format: OP_RETURN | | ARK(3B) | [type(1B) | varint_len | data]...

    Index

    Methods

    • serialize encodes the extension as an OP_RETURN script.

      Layout: OP_RETURN | | ARK | [type | varint_len | data]...

      Returns Uint8Array

    • txOut returns the extension as a zero-value OP_RETURN transaction output.

      Returns Required<Pick<TransactionOutput, "script" | "amount">>

    • isExtension returns true if the script is an OP_RETURN whose push data begins with the ARK magic bytes.

      Parameters

      • script: Uint8Array

      Returns boolean