Constructs an account block.
userData defaults to 0. The code is validated against the stable
reject-code set.
Throws ParamError when code is not a recognized reject code, or
RangeError when userData exceeds the supported token range.
Optionaluser_data: bigint | nullReadonlycodeThe reject code.
ReadonlydetailsCase-specific block details.
ReadonlypolicyThe name of the policy that produced the block.
ReadonlyreasonThe human-readable block reason.
ReadonlyuserThe opaque caller-defined token as a bigint.
The core token is usize, so on wasm32 it must fit u32; the
constructor rejects a larger value with RangeError, so no
AccountBlock holds one.
Returns a fresh copy of this account block.
Account block returned by a custom policy's kill-switch path.