| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.Bitcoin.Transaction
- decode :: HexString -> Transaction
- encode :: Transaction -> HexString
- transactionId :: Transaction -> HexString
- 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
Arguments
| :: HexString | The hexadecimal representation of the transaction |
| -> Transaction | The decoded |
Decodes a hex representation of a transaction into a Transaction object.
Arguments
| :: Transaction | The |
| -> HexString | The hexadecimal representation of the transaction |
Encodes a Transaction object into a hex representation.
transactionId :: Transaction -> HexString Source
Calculates the transaction id of a Transaction as a HexString so it
can be used in RPC interfaces.
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
| |