bitcoin-api-0.12.1: Provides access to the RPC API of Bitcoin Core

Safe HaskellNone




data UnspentTransaction Source

A transaction that is not yet spent. Every output transaction relies on one or more unspent input transansactions.

For more detailed documentation of the fields, see:




_amount :: Btc

The transaction amount in Btc

_transactionId :: TransactionId

Transaction identifier to uniquely identify the transaction.

_vout :: Integer

The index of the output of the transaction that has been spent.

_spendable :: Bool

Whether this input is spendable. If not, it means it is an output of a watch-only address.

_address :: Maybe Base58String

The P2PKH or P2SH address this transaction belongs to. Only available in case of P2PKH or P2SH output scripts.

_account :: Maybe Text

If the address belongs to an account, the account is returned.

_confirmations :: Integer

The amount of confirmations this transaction has

_scriptPubKey :: Text

The output script paid, encoded as hex

_redeemScript :: Maybe Text

If the output is a P2SH whose script belongs to this wallet, this is the redeem script.