MultiAddress class

Helper for creating MultiAddress variants

MultiAddress is commonly used in Substrate for specifying accounts and has several variants:

  • Id (index 0): Raw AccountId
  • Index (index 1): Account index
  • Raw (index 2): Raw bytes
  • Address32 (index 3): 32-byte address
  • Address20 (index 4): 20-byte address (for Ethereum compatibility)

Properties

destination → dynamic
final
destinationArgs MapEntry<String, dynamic>
no setter
hashCode int
The hash code for this object.
no setterinherited
key String
final
props List<Object>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() MapEntry<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

address20(Uint8List address) MultiAddress
Create MultiAddress::Address20 variant (Ethereum)
address32(Uint8List address) MultiAddress
Create MultiAddress::Address32 variant
auto(Uint8List bytes) MultiAddress
Auto-detect and create appropriate MultiAddress
id(Uint8List accountId) MultiAddress
Create MultiAddress::Id variant
index(int accountIndex) MultiAddress
Create MultiAddress::Index variant
raw(Uint8List bytes) MultiAddress
Create MultiAddress::Raw variant