Docs
chromia.com

Type Alias

ImportStrategyOptions

ImportStrategyOptions:
    | { forceSignature: true; originAccountId?: Buffer }
    | { forceSignature?: false; originAccountId?: never }

Options for the import strategy.

Remarks

This type allows configuring whether a signature is required and optionally specifying the origin account ID.

  • If forceSignature is true, a signature will always be required.
  • If forceSignature is false or undefined, the function will try to import without a signature if possible, reverting to signing if needed.
  • If originAccountId is provided, it specifies the account ID to import. If not provided, the account ID will be inferred from the signers of the main auth descriptor.