Transaction class

Constructors

Transaction()
Transaction.clone(Transaction _tx)
factory
Transaction.fromBuffer(Uint8List buffer, {bool noStrict = false})
factory
Transaction.fromHex(String hex, {bool noStrict = false})
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
ins List<Input>
getter/setter pair
locktime int
getter/setter pair
outs List<Output>
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
txSize int
no setter
version int
getter/setter pair

Methods

addInput(Uint8List hash, int? index, [int? sequence, Uint8List? scriptSig]) int
addOutput(Uint8List? scriptPubKey, int? value) int
byteLength() int
getHash() Uint8List
getId() String
hashForSignature(int inIndex, Uint8List? prevOutScript, int hashType) → dynamic
hashForWitnessV0(int inIndex, Uint8List prevOutScript, int value, int hashType) → dynamic
hasWitnesses() bool
isCoinbase() bool
isCoinbaseHash(dynamic buffer) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setInputScript(int index, Uint8List? scriptSig) → dynamic
setWitness(int index, List<Uint8List?>? witness) → dynamic
toBuffer([Uint8List? buffer, int? initialOffset]) Uint8List
toHex() String
toString() String
A string representation of this object.
override
vectorSize(List<Uint8List?> someVector) int
virtualSize() int
weight() int

Operators

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