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<OutputBase>
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
version ↔ int?
getter/setter pair

Methods

addBaseOutput(OutputBase output) → int
addBaseOutputAt(OutputBase output, int index) → int
addInput(Uint8List hash, int? index, {int? sequence, Uint8List? scriptSig, int? value, Uint8List? prevoutScript, Uint8List? witnessUtxo, Uint8List? tapInternalKey, List<TapLeafScript>? tapLeafScript}) → int
addOutput(Uint8List? scriptPubKey, int? value) → int
addOutputAt(Uint8List? scriptPubKey, int value, int at) → int
byteLength() → int
createHashesForSig({required int vin, int? hashType}) → Uint8List
getHash() → Uint8List
getId() → String
hashForSignature(int inIndex, Uint8List? prevOutScript, int? hashType) → Uint8List
hashForWitnessV0(int inIndex, Uint8List prevOutScript, int value, int hashType) → Uint8List
hashForWitnessV1(int inIndex, List<Uint8List> prevOutScripts, List<int> values, int hashType, Uint8List? leafHash, Uint8List? annex) → Uint8List
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) → void
setLocktime(int value) → void
setVersion(int value) → void
setWitness(int index, List<Uint8List?>? witness) → void
signSchnorr({required int vin, required ECPair keyPair, int? hashType, bool hd = false}) → void
signSchnorrHd({required int vin, required Uint8List sig, int? hashType}) → void
tapLeafHash(TapLeafScript? tapLeaf) → Uint8List?
toBuffer([Uint8List? buffer, int? initialOffset]) → Uint8List
toHex() → String
toString() → String
A string representation of this object.
override
vectorSize(List<Uint8List?> someVector) → int
vectorSizeNew(Input input) → int
verifySchnorr({required int vin, Uint8List? signature}) → Uint8List
virtualSize() → int
weight() → int

Operators

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