AssetTransaction class
Inheritance
Annotations
@JsonSerializable(checked: true, explicitToJson: true)
Constructors
AssetTransaction ({required List <AssetRecipient > recipients , required List <ToplAddress > sender , required String propositionType , ToplAddress ? changeAddress , PolyAmount ? fee , Latin1Data ? data , required bool minting , ToplAddress ? consolidationAddress , required AssetCode assetCode })
AssetTransaction.fromJson (Map <String , dynamic > json )
A necessary factory constructor for creating a new AssetTransaction instance
from a map. Pass the map to the generated _$AssetTransactionFromJson()
constructor.
The constructor is named after the source class, in this case, AssetTransaction.
factory
Properties
assetCode
→ AssetCode
The encoded assetCode that the user wants to include on teh asset box
final
changeAddress
→ ToplAddress ?
The recipient of the returned UTXOs from poly transactions including
left-over network fees
final inherited
consolidationAddress
→ ToplAddress ?
The recipient of the change from the assetTransaction
final
data
→ Latin1Data ?
Data string which can be associated with this transaction (may be empty)
final inherited
fee
→ PolyAmount ?
The maximum amount of polys to spend on the network fee.
final inherited
hashCode
→ int
The hash code for this object.
no setter inherited
minting
→ bool
The minting parameter for asset transactions.
final
propositionType
→ String
Type of proposition, eg., PublicKeyCurve25519, ThresholdCurve25519, PublicKeyEd25519
final inherited
recipients
→ List <AssetRecipient >
The recipient of this transaction
final
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
sender
→ List <ToplAddress >
The address of the sender/s of this transaction.
final inherited
Methods
copy ({List <AssetRecipient > ? recipients , List <ToplAddress > ? from , String ? propositionType , ToplAddress ? changeAddress , PolyAmount ? fee , Latin1Data ? data , bool ? minting , ToplAddress ? consolidationAddress , AssetCode ? assetCode })
→ AssetTransaction
copyWith ({List <ToplAddress > ? sender , String ? propositionType , ToplAddress ? changeAddress , PolyAmount ? fee , Latin1Data ? data })
→ Transaction
inherited
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson ()
→ Map <String , dynamic >
toJson
is the convention for a class to declare support for serialization
to JSON. The implementation simply calls the private, generated
helper method _$AssetTransactionToJson
.
toString ()
→ String
A string representation of this object.
inherited