UnknownTransaction
Variant 572 v393sp_runtime::transaction_validity::UnknownTransaction
About This Type
Enum type: UnknownTransaction.
A tagged union where the first byte selects which variant is active, followed by that variant's data.
Encoding: 1-byte variant index followed by the selected variant's field data.
Variants (3)
| Index | Name | Fields | Docs |
|---|---|---|---|
| 0 | CannotLookup | none | |
| 1 | NoUnsignedValidator | none | |
| 2 | Custom |
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 3 possible variants.
- Size
- variable (1+ bytes)
Examples
CannotLookup
0x0000 Variant index 0 = CannotLookupNoUnsignedValidator
0x0101 Variant index 1 = NoUnsignedValidatorCustom = Custom(u8)
0x02<field0>02 Variant index 2 = Customfield 0 field0: u8Code Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode UnknownTransaction — variant "CannotLookup"
const value = registry.createType("UnknownTransaction", "CannotLookup");
console.log("Hex:", value.toHex());Referenced By (1)
Type Information
- Type ID
- 572
- Kind
- Variant
- Path
- sp_runtime::transaction_validity::UnknownTransaction
- Runtime
- v393