CashToken class
A CashToken attached to a UTXO. Can carry fungible amounts, an NFT, or both. Identified by a 32-byte category ID (genesis txid).
Constructors
- CashToken({required Uint8List categoryId, CashTokenCapability capability = CashTokenCapability.none, Uint8List? commitment, BigInt? amount})
- CashToken.deserialize(Uint8List bytes)
-
factory
Properties
- amount → BigInt
-
Fungible token amount (0 if NFT-only).
final
- capability → CashTokenCapability
-
final
- categoryId → Uint8List
-
32-byte category ID (genesis txid).
final
- commitment → Uint8List?
-
NFT commitment (0-40 bytes), or null.
final
- hasFungible → bool
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasNft → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
serialize(
) → Uint8List -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited