CCC Docs
    Preparing search index...

    Class SignerMultisigOmniLockReadonly

    A read-only signer for Omnilock cells using CKB multisig auth (flag 0x06).

    Omnilock with auth flag 0x06 uses the same M-of-N secp256k1 multisig verification as the standalone multisig system script. The multisig witness bytes (S|R|M|N|pubkey_hashes|signatures) are placed inside the OmniLockWitnessLock.signature field rather than directly in WitnessArgs.lock.

    When ACP mode is enabled (omniLockFlags & 0x02), the cell can also be unlocked without a signature (ACP deposit path), following RFC 0026 rules.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    EmptySignature: `0x${string}` = ...
    multisigInfo: MultisigCkbWitness
    scriptInfos: Promise<{ script: Script; cellDeps: CellDepInfo[] }[]>
    omniLockFlags: number
    acpMinCkb: number
    acpMinUdt: number
    client_: Client

    Accessors

    Methods

    • Prepare the witness args at a specific index.

      Parameters

      • txLike: TransactionLike
      • index: number
      • Optionaltransformer:
            | null
            | (
                (
                    witness: MultisigCkbWitness,
                    witnessArgs: WitnessArgs,
                ) =>
                    | undefined
                    | null
                    | void
                    | MultisigCkbWitnessLike
                    | Promise<(void | MultisigCkbWitnessLike | null | undefined)>
            )

      Returns Promise<Transaction>

    • Gets the recommended address for the signer as a string.

      Parameters

      • Optionalpreference: unknown

        Optional preference parameter.

      Returns Promise<string>

      A promise that resolves to the recommended address as a string.

    • Find cells of this signer

      Parameters

      • filter: ClientIndexerSearchKeyFilterLike

        The filter for the search key.

      • OptionalwithData: null | boolean

        Whether to include cell data in the response.

      • Optionalorder: "asc" | "desc"

        The order of the returned cells, can be "asc" or "desc".

      • Optionallimit: number

        The maximum number of cells for every querying chunk.

      Returns AsyncGenerator<Cell>

      A async generator that yields all matching cells

    • Find transactions of this signer

      Parameters

      Returns AsyncGenerator<
          {
              txHash: `0x${string}`;
              blockNumber: bigint;
              txIndex: bigint;
              isInput: boolean;
              cellIndex: bigint;
          },
      >

      A async generator that yields all matches transactions

    • Find transactions of this signer

      Parameters

      Returns AsyncGenerator<
          {
              txHash: `0x${string}`;
              blockNumber: bigint;
              txIndex: bigint;
              cells: { isInput: boolean; cellIndex: bigint }[];
          },
      >

      A async generator that yields all matches transactions

    • Find transactions of this signer

      Parameters

      Returns AsyncGenerator<
          | {
              txHash: `0x${string}`;
              blockNumber: bigint;
              txIndex: bigint;
              isInput: boolean;
              cellIndex: bigint;
          }
          | {
              txHash: `0x${string}`;
              blockNumber: bigint;
              txIndex: bigint;
              cells: { isInput: boolean; cellIndex: bigint }[];
          },
      >

      A async generator that yields all matches transactions

    • Signs a message and returns signature only. This method is not implemented and should be overridden by subclasses.

      Parameters

      • _: BytesLike

        The message to sign, as a string or BytesLike object.

      Returns Promise<string>

      A promise that resolves to the signature as a string.

      Will throw an error if not implemented.