RawTransaction class

Annotations
  • @freezed

Constructors

RawTransaction({@JsonKey(name: 'blockType') @BlockTypeConverter() required BlockType type, Address? address, Address? toAddress, BigInt? fee, @NullableUint8ListBase64Converter() Uint8List? data, Hash? sendBlockHash, Hash? previousHash, @JsonKey(name: 'tokenId') Token? token, BigInt? amount, BigInt? height, BigInt? difficulty, @NullableUint8ListBase64Converter() Uint8List? nonce, Hash? hash, @NullableUint8ListBase64Converter() Uint8List? signature, @NullableUint8ListBase64Converter() Uint8List? publicKey})
factory
RawTransaction.callContract({required Address address, required Address contractAddress, required BigInt amount, required Token token, required Uint8List data, BigInt? fee})
factory
RawTransaction.createContract({required Address address, required Address contractAddress, required Uint8List data, BigInt? fee})
factory
RawTransaction.fromJson(Map<String, dynamic> json)
factory
RawTransaction.receive({required Address address, required Hash sendBlockHash, BigInt? height, Hash? previousHash, Uint8List? data, Uint8List? nonce, BigInt? difficulty})
factory
RawTransaction.send({required Address address, required Address toAddress, required Token token, required BigInt amount, Uint8List? data, BigInt? height, Hash? previousHash, Uint8List? nonce, BigInt? difficulty})
factory

Properties

address Address?
no setterinherited
amount BigInt?
no setterinherited
copyWith → $RawTransactionCopyWith<RawTransaction>
no setterinherited
data Uint8List?
no setterinherited
difficulty BigInt?
no setterinherited
fee BigInt?
no setterinherited
hash Hash?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
height BigInt?
no setterinherited
nonce Uint8List?
no setterinherited
previousHash Hash?
no setterinherited
publicKey Uint8List?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sendBlockHash Hash?
no setterinherited
signature Uint8List?
no setterinherited
toAddress Address?
no setterinherited
token Token?
no setterinherited
type BlockType
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

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