Tx class
Methods
addTxIn ({dynamic data , int ? txOutNum , Script ? script , int ? nSequence })
→ Tx
addTxOut ({dynamic data , Script ? script })
→ Tx
cloneByBuffer ()
→ Tx
fromBr (Br br )
→ Tx
fromBuffer (List <int > buf )
→ Tx
fromHex (String str )
→ Tx
fromJSON (Map json )
→ Tx
hash ()
→ Hash
Creates a combined hash code for a number of objects.
override
hashOutputs ()
→ Hash
hashPrevouts ()
→ Hash
hashSequence ()
→ Hash
id ()
→ String
isCoinbase ()
→ bool
Analagous to bitcoind's IsCoinBase in transaction.h
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sighash ({required int nHashType , int ? nIn , Script ? subScript , BigIntX ? valueBn , int ? flags = 0 , HashCache ? hashCache })
→ List <int >
For a normal transaction, subScript is usually the scriptPubKey. For a
p2sh transaction, subScript is usually the redeemScript. If you're not
normal because you're using OP_CODESEPARATORs, you know what to do.
sighashPreimage ({required int nHashType , int ? nIn , Script ? subScript , BigIntX ? valueBn , int ? flags = 0 , HashCache ? hashCache })
→ List <int >
sign ({KeyPair ? keyPair , int nHashType = Sig.SIGHASH_ALL | Sig.SIGHASH_FORKID , int ? nIn , Script ? subScript , BigIntX ? valueBn , int flags = Tx.SCRIPT_ENABLE_SIGHASH_FORKID , HashCache ? hashCache })
→ Sig
sort ()
→ Tx
BIP 69 sorting. Be sure to sign after sorting.
toBuffer ()
→ List <int >
toBw ([Bw ? bw ])
→ Bw
toHex ()
→ String
toJSON ()
→ Map <String , Object ? >
toString ()
→ String
A string representation of this object.
override
verify ({required Sig sig , PubKey ? pubKey , int ? nIn , Script ? subScript , bool enforceLowS = false , BigIntX ? valueBn , int ? flags = Tx.SCRIPT_ENABLE_SIGHASH_FORKID , HashCache ? hashCache })
→ bool ?