SubAccountIdentifier class
An account may have state specific to a contract address (ERC-20 token) and/or a stake (delegated balance). The SubAccountIdentifier should specify which state (if applicable) an account instantiation refers to.
- Annotations
-
- @immutable
Constructors
-
SubAccountIdentifier(String address, Map<
String, dynamic> ? metadata) -
const
-
SubAccountIdentifier.fromJson(Map<
String, dynamic> map) -
factory
Properties
- address → String
-
The SubAccount address may be a cryptographic value or some other
identifier (ex: bonded) that uniquely specifies a SubAccount.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
metadata
→ Map<
String, dynamic> ? -
If the SubAccount address is not sufficient to uniquely specify a
sub-account, any other identifying information can be stored here.
It is important to note that two SubAccounts with identical addresses
but differing metadata will not be considered equal by clients.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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