InvalidTransaction
Variant 571 v393sp_runtime::transaction_validity::InvalidTransaction
About This Type
Enum type: InvalidTransaction.
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 (13)
| Index | Name | Fields | Docs |
|---|---|---|---|
| 0 | Call | none | |
| 1 | Payment | none | |
| 2 | Future | none | |
| 3 | Stale | none | |
| 4 | BadProof | none | |
| 5 | AncientBirthBlock | none | |
| 6 | ExhaustsResources | none | |
| 7 | Custom | ||
| 8 | BadMandatory | none | |
| 9 | MandatoryValidation | none | |
| 10 | BadSigner | none | |
| 11 | IndeterminateImplicit | none | |
| 12 | UnknownOrigin | none |
SCALE Encoding
- Rule
- 1-byte variant index followed by variant-specific field data. 13 possible variants.
- Size
- variable (1+ bytes)
Examples
Call
0x0000 Variant index 0 = CallPayment
0x0101 Variant index 1 = PaymentFuture
0x0202 Variant index 2 = FutureCode Examples
import { TypeRegistry } from "@polkadot/types";
const registry = new TypeRegistry();
// Encode InvalidTransaction — variant "Call"
const value = registry.createType("InvalidTransaction", "Call");
console.log("Hex:", value.toHex());Referenced By (1)
Type Information
- Type ID
- 571
- Kind
- Variant
- Path
- sp_runtime::transaction_validity::InvalidTransaction
- Runtime
- v393