bitcoin-tx-0.10.0: Utility functions for manipulating bitcoin transactions

Safe HaskellNone
LanguageHaskell2010

Network.Bitcoin.Transaction.Types

Synopsis

Documentation

newtype VarInt Source

Data type representing a variable length integer. The VarInt type usually precedes an array or a string that can vary in length.

Constructors

VarInt 

Fields

getVarInt :: Word64
 

data TxnOutputType Source

Constructors

TxnPubKey

JSON of "pubkey" received.

TxnPubKeyHash

JSON of "pubkeyhash" received.

TxnScriptHash

JSON of "scripthash" received.

TxnMultisig

JSON of "multisig" received.

data OutPoint Source

The OutPoint is used inside a transaction input to reference the previous transaction output that it is spending.

Constructors

OutPoint 

Fields

outPointHash :: TransactionHash

The hash of the referenced transaction.

outPointIndex :: !Word32

The position of the specific output in the transaction. The first output position is 0.

data TransactionIn Source

Data type representing a transaction input.

Constructors

TransactionIn 

Fields

prevOutput :: OutPoint

Reference the previous transaction output (hash + position)

scriptInput :: Script

Script providing the requirements of the previous transaction output to spend those coins.

txInSequence :: Word32

Transaction version as defined by the sender of the transaction. The intended use is for replacing transactions with new information before the transaction is included in a block.

data TransactionOut Source

Data type representing a transaction output.

Constructors

TransactionOut 

Fields

outValue :: Word64

Transaction output value.

scriptOutput :: Script

Script specifying the conditions to spend this output.

data Transaction Source

Data type representing a bitcoin transaction

Constructors

Transaction 

Fields

txVersion :: Word32

Transaction data format version

txIn :: [TransactionIn]

List of transaction inputs

txOut :: [TransactionOut]

List of transaction outputs

txLockTime :: Word32

The block number of timestamp at which this transaction is locked