Supply class
Supply
- Inheritance
-
- Object
- Serializable
- Supply
Constructors
-
Supply.new({required u64 total, required u64 circulating, required u64 nonCirculating, required List<
String> nonCirculatingAccounts}) -
Information about the current supply.
const
-
Supply.fromJson(Map<
String, dynamic> json) -
Creates an instance of
this
class from the constructor parameters defined in thejson
object.factory
Properties
- circulating → u64
-
The circulating supply in lamports.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- nonCirculating → u64
-
The non-circulating supply in lamports.
final
-
nonCirculatingAccounts
→ List<
String> -
An array of account addresses of non-circulating accounts, as strings. If
GetSupplyConfig.excludeNonCirculatingAccountsList is enabled, the returned array will be
empty.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- total → u64
-
The total supply in lamports.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serialises
this
class into a JSON object.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
tryFromJson(
Map< String, dynamic> ? json) → Supply? -
Creates an instance of
this
class from the constructor parameters defined in thejson
object.override