| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.Bitcoin.Transaction
- decode :: ByteString -> Transaction
- encode :: Transaction -> ByteString
- data Transaction = Transaction {
- txVersion :: Word32
- txIn :: [TransactionIn]
- txOut :: [TransactionOut]
- txLockTime :: Word32
- data TransactionIn = TransactionIn {
- prevOutput :: OutPoint
- scriptInput :: Script
- txInSequence :: Word32
- data TransactionOut = TransactionOut {
- outValue :: Word64
- scriptOutput :: Script
Documentation
decode :: ByteString -> Transaction Source
Decodes a hex representation of a transaction into a Transaction object.
encode :: Transaction -> ByteString Source
Encodes a Transaction object into a hex representation.
data Transaction Source
Data type representing a bitcoin transaction
Constructors
| Transaction | |
Fields
| |
Instances
data TransactionIn Source
Data type representing a transaction input.
Constructors
| TransactionIn | |
Fields
| |
data TransactionOut Source
Data type representing a transaction output.
Constructors
| TransactionOut | |
Fields
| |