MasterEditionAccount class
- Inheritance
-
- Object
- BorshObject
- BorshObjectSized
- MasterEditionAccount
- Annotations
-
- @JsonSerializable.new(explicitToJson: true)
Constructors
- MasterEditionAccount({required int key, required BigInt supply, required BigInt? maxSupply})
-
Master Edition Account Information.
const
- MasterEditionAccount.fromAccountInfo(AccountInfo info)
-
Creates an instance of
thisclass from an accountinfo.factory -
MasterEditionAccount.fromJson(Map<
String, dynamic> json) -
Creates an instance of
thisclass from the constructor parameters defined in thejsonobject.factory
Properties
- borshSchema → BorshSchemaSized
-
Maps
thisclass' properties to codecs.no setteroverride - hashCode → int
-
The hash code for this object.
no setterinherited
- key → int
-
The discriminator of the account as an enum.
final
- maxSupply → BigInt?
-
The maximum number of times NFTs can be printed from this Master Edition. When set to None,
the program will enable unlimited prints. You can disable NFT printing by setting the Max
Supply to 0.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- supply → BigInt
-
The amount of NFTs printed from this Master Edition. This field is automatically computed by
the program and cannot be manually updated. Once the Supply reaches the Max Supply, no more
prints can be made from this Master Edition.
final
Methods
-
borshSize(
) → int -
Returns the serialized byte length of
thisinstance.inherited -
borshSpace(
) → int -
The serialized byte length required to store any instance of this class (i.e. max size).
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toBorsh(
) → Iterable< int> -
Serializes
thisinstance into a buffer.inherited -
toJson(
) → Map< String, dynamic> -
Serialises
thisclass 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 → BorshStructSizedCodec
-
The encoders/decoders of
thisclass' properties.no setter
Static Methods
-
fromBorsh(
Iterable< int> buffer) → MasterEditionAccount -
Creates an instance of
thisclass from a buffer.override -
fromBorshBase64(
String encoded) → MasterEditionAccount -
Creates an instance of
thisclass from a base-64 encoded string.override -
tryFromAccountInfo(
AccountInfo? info) → MasterEditionAccount? -
Creates an instance of
thisclass from an accountinfo. -
tryFromBorsh(
Iterable< int> ? buffer) → MasterEditionAccount? -
Creates an instance of
thisclass from a buffer.override -
tryFromBorshBase64(
String? encoded) → MasterEditionAccount? -
Creates an instance of
thisclass from a base-64 encoded string.override