RuntimeMetadataPrefixed class
Wrapper for prefixed runtime metadata
This is the top-level structure returned by the state_getMetadata RPC call.
It includes a magic number and version before the actual metadata.
Constructors
- RuntimeMetadataPrefixed({required int magicNumber, required RuntimeMetadata metadata})
-
const
- RuntimeMetadataPrefixed.fromBytes(Uint8List rawData)
-
factory
- RuntimeMetadataPrefixed.fromHex(String hexString)
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isValidMagicNumber → bool
-
Check if the magic number is valid
no setter
- magicNumber → int
-
Magic number (should be metaReserved: 0x6174656d / "meta")
final
- metadata → RuntimeMetadata
-
The actual metadata (versioned enum)
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
buildChainInfo(
) → ChainInfo -
buildRegistry(
) → MetadataTypeRegistry -
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
Constants
- codec → const $RuntimeMetadataPrefixed
- Codec instance for RuntimeMetadataPrefixed