ExtrinsicMetadataV16 class

Metadata of the extrinsic used by the runtime (Version 16)

V16 extends ExtrinsicMetadata with significant changes:

  • versions: Vec
  • Replaces signedExtensions with transactionExtensions
  • Adds transactionExtensionsByVersion mapping
  • extraType and signedExtensions are not used (return -1 and [] respectively)

Reference: https://github.com/paritytech/frame-metadata/blob/main/frame-metadata/src/v16.rs#L147-L180

Inheritance

Constructors

ExtrinsicMetadataV16({required List<int> versions, required int addressType, required int callType, required int signatureType, required Map<int, List<int>> transactionExtensionsByVersion, required List<TransactionExtensionMetadata> transactionExtensions})
const

Properties

addressType int
The type of the address.
finalinherited
callType int
The type of the call.
finalinherited
extraType int
The type of the extra.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signatureType int
The type of the signature.
finalinherited
signedExtensions List<SignedExtensionMetadata>
The signed extensions in the order they appear in the extrinsic.
finalinherited
transactionExtensions List<TransactionExtensionMetadata>
List of all transaction extensions
final
transactionExtensionsByVersion Map<int, List<int>>
Mapping from extrinsic version to active transaction extension indices
final
version int
Get the primary/default version (first in the list)
no setteroverride
versions List<int>
Supported extrinsic versions
final

Methods

extensionsForVersion(int ver) List<TransactionExtensionMetadata>
Get transaction extensions for a specific version
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

codec → const $ExtrinsicMetadataV16
Codec instance for ExtrinsicMetadataV16