Account class

Account

A wallet account.

Constructors

Account({required String address, required String? label})
Wallet account information.
const
Account.fromBase58(String address, {String? label})
Creates an Account from a base-58 address.
factory
Account.fromJson(Map<String, dynamic> json)
Creates an instance of this class from the constructor parameters defined in the json object.
factory

Properties

address String
The base-64 encoded address of this account.
final
hashCode int
The hash code for this object.
no setteroverride
label String?
A human-readable string that describes this account.
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
toBase58() String
Returns the base-64 address as a base-58 encoded string.
toJson() Map<String, dynamic>
Serialises this class into a JSON object.
toString() String
A string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator.
override

Static Methods

tryFromBase58(String? address, {String? label}) Account?
Creates an Account from a base-58 address.
tryFromJson(Map<String, dynamic>? json) Account?
Creates an instance of this class from the constructor parameters defined in the json object.