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

Safe HaskellNone
LanguageHaskell2010

Network.Bitcoin.Api.Types.UnspentTransaction

Synopsis

Documentation

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: https://bitcoin.org/en/developer-reference#listunspent

Constructors

UnspentTransaction 

Fields

_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.