RuntimeApiMetadataV16 class

Metadata about a runtime API (V16)

Runtime APIs are interfaces exposed by the runtime that can be called via the state_call RPC method. They provide versioned access to runtime functionality.

V16 adds:

  • version field for API versioning
  • deprecation information to track deprecated APIs

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

Constructors

RuntimeApiMetadataV16({required String name, required List<RuntimeApiMethodMetadataV16> methods, List<String> docs = const [], required int version, required ItemDeprecationInfo deprecationInfo})
const

Properties

deprecationInfo ItemDeprecationInfo
Deprecation information for this API (NEW in V16)
final
docs List<String>
Documentation for this API
final
hashCode int
The hash code for this object.
no setterinherited
methods List<RuntimeApiMethodMetadataV16>
List of methods in this API
final
name String
Name of the runtime API
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
version int
Version of this runtime API (NEW in V16)
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

Constants

codec → const $RuntimeApiMetadataV16
Codec instance for RuntimeApiMetadataV16