MetadataCreator class

Metadata Creator

Inheritance
Annotations
  • @JsonSerializable(explicitToJson: true)

Constructors

MetadataCreator.new({required Pubkey address, required bool verified, required u8 share})
An array of creators and their share of the royalties. This array is limited to 5 creators. Note that, because the Creators field is an array of variable length, we cannot guarantee the byte position of any field that follows (Notice the tilde ~ in the fields below). Each creator contains the following fields.
const
MetadataCreator.fromJson(Map<String, dynamic> json)
Creates an instance of this class from the constructor parameters defined in the json object.
factory

Properties

address Pubkey
The public key of the creator.
final
borshSchema BorshSchemaSized
Maps this class' properties to codecs.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
share u8
The creator's shares of the royalties in percentage (1 byte) — i.e. 55 means 55%. Similarly to the Seller Fee Basis Points field, this is used by marketplaces but not enforced by the Token Metadata program.
final
verified bool
A boolean indicating if the creator signed the NFT. It is important to check this field to ensure the authenticity of the creator.
final

Methods

borshSize() int
Returns the serialized byte length of this instance.
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 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 BorshStructSizedCodec
The encoders/decoders of this class' properties.
no setter