@openpit/engine
    Preparing search index...

    Class AccountBlock

    Account block returned by a custom policy's kill-switch path.

    Index
    • Constructs an account block.

      userData defaults to 0. The code is validated against the stable reject-code set.

      Errors

      Throws ParamError when code is not a recognized reject code.

      Parameters

      • policy: string
      • code: string
      • reason: string
      • details: string
      • Optionaluser_data: bigint | null

      Returns AccountBlock

    The reject code.

    details: string

    Case-specific block details.

    policy: string

    The name of the policy that produced the block.

    reason: string

    The human-readable block reason.

    userData: bigint

    The opaque caller-defined token as a bigint.

    The core token is usize, so on wasm32 it must fit u32; a larger value is rejected when the block is converted to its core form.

    • Returns void

    • Returns a fresh copy of this account block.

      Returns AccountBlock

    • Returns void