new Transaction(serialized)
Represents a transaction, a set of inputs and outputs to change ownership of tokens
Parameters:
| Name | Type | Description |
|---|---|---|
serialized |
* |
- Source:
Members
-
serialize
-
Retrieve a hexa string that can be used with bitcoind's CLI interface (decoderawtransaction, sendrawtransaction)
- Source:
Methods
-
<static> shallowCopy(transaction) → {Transaction}
-
Create a "shallow" copy of the transaction, by serializing and deserializing it dropping any additional information that inputs and outputs may have hold
Parameters:
Name Type Description transactionTransaction - Source:
Returns:
- Type
- Transaction
-
_getHash() → {Buffer}
-
Retrieve the little endian hash of the transaction (used for serialization)
- Source:
Returns:
- Type
- Buffer