BTCRawTransaction class

Raw Transaction Implementation for Bitcoin

Inheritance

Constructors

BTCRawTransaction.new({required int version, required int lockTime, required List<BTCInput> inputs, required List<BTCOutput> outputs, Map<ElectrumOutput, Input>? inputMap})
const
BTCRawTransaction.fromHex(String hex)
factory

Properties

asHex → String
no setterinherited
bytes → Uint8List
no setteroverride
fee → BigInt
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
hasWitness → bool
no setter
inputMap → Map<ElectrumOutput, Input>?
Mapping of UTXOs to generated inputs Non Null if returned from buildUnsignedTransaction
finalinherited
inputs → List<BTCInput>
final
lockTime → int
final
nonSegwitInputs → Iterable<BTCInput>
no setter
outputs → List<BTCOutput>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
segwitInputs → Iterable<BTCInput>
no setter
size → int
no setterinherited
targetAmount → BigInt
no setterinherited
totalInputValue → BigInt
no setterinherited
totalOutputValue → BigInt
no setterinherited
txid → String
no setterinherited
version → int
finalinherited
weight → BigInt
no setterinherited

Methods

bip143sigHash({required int index, required Uint8List prevScriptPubKey, required ElectrumOutput output, required int hashType}) → Uint8List
BIP143 SigHash: https://github.com/bitcoin/bips/blob/master/bip-0143.mediawiki
createCopy() → BTCRawTransaction
override
legacySigHash({required int index, required Uint8List prevScriptPubKey, required int hashType}) → Uint8List
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sign({required Uint8List seed, required HDWalletPath walletPath, required UTXONetworkType networkType}) → RawTransaction
inherited
toString() → String
A string representation of this object.
inherited

Operators

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