MintAccountInfo class
Mint Account Info
- Inheritance
-
- Object
- BorshObject
- MintAccountInfo
Constructors
- MintAccountInfo.new({required String? mintAuthority, required BigInt supply, required int decimals, required bool isInitialized, required String? freezeAuthority})
-
Mint Account Information.
const
- MintAccountInfo.fromAccountInfo(AccountInfo info)
-
Creates an instance of
this
class from an accountinfo
.factory - MintAccountInfo.fromBorshBase64(String encoded)
-
Creates an instance of
this
class from a base-64 encoded string.factory -
MintAccountInfo.fromJson(Map<
String, dynamic> json) -
Creates an instance of
this
class from the constructor parameters defined in thejson
object.factory
Properties
- borshSchema → BorshSchema
-
Maps
this
class' properties to codecs.no setteroverride - decimals → int
-
Number of base 10 digits to the right of the decimal place.
final
- freezeAuthority → String?
-
Optional authority (base-58) to freeze token accounts.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isInitialized → bool
-
Is this mint initialized.
final
- mintAuthority → String?
-
Optional authority (base-58) used to mint new tokens. The mint authority may only be provided
during mint creation. If no mint authority is present then the mint has a fixed supply and no
further tokens may be minted.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- supply → BigInt
-
Total supply of tokens.
final
Methods
-
borshSize(
) → int -
Returns the serialized byte length of
this
instance.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toBorsh(
) → Iterable< int> -
Serializes
this
instance into a buffer.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 Properties
- codec → BorshStructCodec
-
The encoders/decoders of
this
class' properties.final
Static Methods
-
fromBorsh(
Iterable< int> buffer) → MintAccountInfo -
Creates an instance of
this
class from a buffer.override -
tryFromAccountInfo(
AccountInfo? info) → MintAccountInfo? -
Creates an instance of
this
class from an accountinfo
. -
tryFromBorsh(
Iterable< int> ? buffer) → MintAccountInfo? -
Creates an instance of
this
class from a buffer.override -
tryFromBorshBase64(
String? encoded) → MintAccountInfo? -
Creates an instance of
this
class from a base-64 encoded string.override -
tryFromJson(
Map< String, dynamic> ? json) → MintAccountInfo? -
Creates an instance of
this
class from the constructor parameters defined in thejson
object.override