MevShield::Error

Variant 544 v411

pallet_shield::pallet::Error

The `Error` enum of this pallet.

About This Type

Error enum for the Error pallet.

Contains all error types that the Error pallet can return when a call fails.

Variants (4)

IndexNameFieldsDocs
0BadEncKeyLennoneThe announced ML‑KEM encapsulation key length is invalid.
1UnreachablenoneUnreachable.
2TooManyPendingExtrinsicsnoneToo many pending extrinsics in storage.
3WeightExceedsAbsoluteMaxnoneWeight exceeds the absolute maximum (half of total block weight).

SCALE Encoding

Rule
1-byte variant index followed by variant-specific field data. 4 possible variants.
Size
variable (1+ bytes)

Examples

BadEncKeyLen
0x00
00 Variant index 0 = BadEncKeyLen
Unreachable
0x01
01 Variant index 1 = Unreachable
TooManyPendingExtrinsics
0x02
02 Variant index 2 = TooManyPendingExtrinsics

Code Examples

import { TypeRegistry } from "@polkadot/types";

const registry = new TypeRegistry();

// Encode MevShield::Error — variant "BadEncKeyLen"
const value = registry.createType("MevShield::Error", "BadEncKeyLen");
console.log("Hex:", value.toHex());

Type Parameters

T

Also See

Type Information

Type ID
544
Kind
Variant
Path
pallet_shield::pallet::Error
Runtime
v411