UncheckedExtrinsic class
Represents an unchecked extrinsic (transaction) in the runtime
Supports both extrinsic format v4 and v5:
- v4: Traditional signed/unsigned model
- v5: New bare/signed/general model with TransactionExtension support
Constructors
-
UncheckedExtrinsic({required int version, required ExtrinsicType type, ExtrinsicSignature? signature, Map<
String, dynamic> ? extensions, required RuntimeCall call}) -
const
- UncheckedExtrinsic.bare({required int version, required RuntimeCall call})
-
Create a bare/unsigned extrinsic
factory
-
UncheckedExtrinsic.general({required Map<
String, dynamic> extensions, required RuntimeCall call}) -
Create a general extrinsic (v5 only)
factory
- UncheckedExtrinsic.signed({required int version, required ExtrinsicSignature signature, required RuntimeCall call})
-
Create a signed extrinsic
factory
Properties
- call → RuntimeCall
-
The actual call being made
final
-
extensions
→ Map<
String, dynamic> ? -
Optional extension data (present for general extrinsics in v5)
This contains the extension version byte followed by extension data
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isBare → bool
-
Whether this is a bare/inherent extrinsic
no setter
- isGeneral → bool
-
Whether this is a general extrinsic (v5 only)
no setter
- isSigned → bool
-
Whether this is a signed extrinsic
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- signature → ExtrinsicSignature?
-
Optional signature (present for signed extrinsics)
final
- type → ExtrinsicType
-
Extrinsic type (bare, signed, or general)
final
- version → int
-
Extrinsic format version (4 or 5)
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited