btck::Coin

Owning wrapper over a btck_Coin.

Synopsis

Declared in <kernel/bitcoinkernel_wrapper.h>

class Coin
    : public Handle<btck_Coin, btck_coin_copy, btck_coin_destroy>
    , public CoinApi<Coin>

Base Classes

NameDescription
Handle<btck_Coin, btck_coin_copy, btck_coin_destroy>Owning RAII handle for a copyable C object of type CType.
CoinApi<Coin>CRTP mixin adding coin accessors shared by the view and owning types.

Member Functions

NameDescription
Coin [constructor]Constructors
operator= Assignment operators
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 owned C handle.

Protected Data Members

NameDescription
m_ptr The owned C handle.