ParsableNftCollection class
Interpretation information for a collection of parsable NFTs, a collection
in which each NFT may include additional metadata fields beyond a sequential
identifier within its on-chain commitment. Note that
ParsableNftCollections differ from SequentialNftCollections
in that parsable collections require a parsing bytecode with which to
inspect each NFT commitment: the type of each NFT is indexed by the
hex-encoded contents the bottom item on the altstack following the evaluation
of the parsing bytecode.
- Implemented types
Constructors
-
ParsableNftCollection({required String bytecode, required Map<
String, NftType> types}) -
const
-
ParsableNftCollection.fromJson(Map<
String, dynamic> json) -
factory
Properties
- bytecode → String
-
A segment of hex-encoded Bitcoin Cash VM bytecode that parses UTXOs
holding NFTs of this category, identifies the NFT's type within the
category, and returns a list of the NFT's field values via the
altstack. If undefined, this NFT Category includes only sequential NFTs,
with only an identifier and no NFT fields encoded in each NFT's
on-chain commitment.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
types
→ Map<
String, NftType> -
A mapping of hex-encoded values to definitions of possible NFT types
in this category.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited