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

Constructors

  • 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: null | bigint

    Returns AccountBlock

Properties

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.

Methods

  • Returns void

  • Returns a fresh copy of this account block.

    Returns AccountBlock

  • Returns void