RuntimeMetadataV16 class

Main metadata container for a Substrate runtime (Version 16)

V16 significantly changes from V15:

  • Removes the type field (Runtime type ID)
  • Adds deprecation information throughout
  • Changes extrinsic structure with transaction extensions
  • Adds associated types and view functions to pallets

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

Inheritance
Available extensions

Constructors

RuntimeMetadataV16({required List<PortableType> types, required List<PalletMetadataV16> pallets, required ExtrinsicMetadataV16 extrinsic, required List<RuntimeApiMetadataV16> apis, required OuterEnumsV16 outerEnums, required CustomMetadataV16 customMetadata})
const

Properties

apis → List<RuntimeApiMetadataV16>
List of runtime APIs exposed by the runtime
final
customMetadata → CustomMetadataV15
Custom metadata fields (same structure as V15)
final
extrinsic → ExtrinsicMetadataV16
Metadata about the extrinsic format used by the runtime
final
extrinsic → ExtrinsicMetadata

Available on RuntimeMetadata, provided by the RuntimeMetadataExtensions extension

Get extrinsic metadata
no setter
hashCode → int
The hash code for this object.
no setterinherited
outerEnums → OuterEnumsV15
Outer enum type IDs (same structure as V15)
final
outerEnums → OuterEnums

Available on RuntimeMetadata, provided by the RuntimeMetadataExtensions extension

Get outer enum types
no setter
pallets → List<PalletMetadataV16>
List of all pallets (modules) in the runtime
final
pallets → List<PalletMetadata>

Available on RuntimeMetadata, provided by the RuntimeMetadataExtensions extension

Get the list of pallets
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
types → List<PortableType>
List of all registered types
final
types → List<PortableType>

Available on RuntimeMetadata, provided by the RuntimeMetadataExtensions extension

no setter
version → int
Get the metadata version number
no setteroverride

Methods

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
typeById(int id) → PortableType
override

Operators

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

Constants

codec → const $RuntimeMetadataV16
Codec instance for RuntimeMetadataV16