CCC Docs
    Preparing search index...

    Function checkNativeMutantCode

    • Preflight a native Mutant's RISC-V ELF the same way the Mutant extension contract does at creation: size within bounds, and an ELF64/little-endian/version-1 executable header targeting RISC-V.

      The CKB VM stays the authority on executability; this only catches obvious mistakes before the transaction is built.

      Parameters

      • code: BytesLike

      Returns Uint8Array

      the checked bytes