btck::CoinView

Non-owning view over a btck_Coin, an unspent transaction output entry.

Synopsis

Declared in <kernel/bitcoinkernel_wrapper.h>

class CoinView
    : public View<btck_Coin>
    , public CoinApi<CoinView>

Base Classes

NameDescription
View<btck_Coin>Non-owning view over a const C handle of type CType.
CoinApi<CoinView>CRTP mixin adding coin accessors shared by the view and owning types.

Member Functions

NameDescription
CoinView [constructor]Constructs a view over ptr.
GetConfirmationHeight Returns the height at which the coin was confirmed.
GetOutput Returns the transaction output backing the coin.
IsCoinbase Reports whether the coin originates from a coinbase transaction.
get Returns the borrowed C handle.

Protected Data Members

NameDescription
m_ptr The borrowed C handle.