TransactionReceipt class

Constructors

TransactionReceipt({required ModifierId id, required String txType, required List<TokenBox> newBoxes, List<SignatureContainer> signatures = const [], bool status = false, required PolyAmount? fee, required int timestamp, Uint8List? messageToSign, required List<BoxId> boxesToRemove, required List<Sender>? from, required List to, required PropositionType propositionType, Latin1Data? data, bool? minting, ModifierId? blockId, BlockNum? blockNumber})
TransactionReceipt.fromJson(Map<String, dynamic> map)
factory

Properties

blockId ModifierId?
Hash of the messageToSign of this block where this transaction is in (32 bytes).
final
blockNumber BlockNum?
The number of the block into which this transaction was forged
final
boxesToRemove List<BoxId>
The boxes that will be deleted as a result of this transaction
final
data Latin1Data?
Data string which can be associated with this transaction (may be empty). Data has a maximum value of 127 Latin-1 encoded characters
final
fee PolyAmount?
The amount of polys that was used to pay for this transaction to the network
final
from List<Sender>?
final
hashCode int
The hash code for this object.
no setteroverride
id ModifierId
The hash of the message to sign.
final
messageToSign Uint8List?
The message that will have to be signed by the sender of this transaction
final
minting bool?
Whether this transfer will be a minting transfer. This field is not strictly necessary for poly or arbit transfers but since it exists in the JSON-RPC output, it is included here for completeness
final
newBoxes List<TokenBox>
The number of boxes that were generated with this transaction.
final
propositionType PropositionType
The propositionType that has or will be used by the sender to generate the proposition. This proposition will be used to verify the authenticity of this transaction together with the provided proof
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signatures List<SignatureContainer>
Proposition Type signature(s)
final
status bool
Whether or not this transfer has been successfully confirmed into a block
final
timestamp int
The time at which this transaction was received by the network
final
to List
final
txType String
The type of transaction
final

Methods

copyWith({ModifierId? id, List<TokenBox>? newBoxes, List<SignatureContainer>? signatures, PolyAmount? fee, int? timestamp, Uint8List? messageToSign, List<BoxId>? boxesToRemove, List<Sender>? from, List? to, PropositionType? propositionType, Latin1Data? data, bool? minting, bool? status, String? txType, ModifierId? blockId, BlockNum? blockNumber}) TransactionReceipt
encodeBoxes(List<TokenBox> boxes) List<Map<String, dynamic>>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBroadcastJson() Map<String, dynamic>
toJson() Map<String, dynamic>
toMempoolJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

decodeBoxes(List boxes) List<TokenBox>
decodeSignatures(Map<String, dynamic> signatures) List<SignatureContainer>
decodeTo(List to) List<Object>
encodeSignatures(List<SignatureContainer> signatures, PropositionType proposition) Map<String, String>
encodeTo(List to) List<Object>