btck::TransactionView

Non-owning view over a btck_Transaction.

Synopsis

Declared in <kernel/bitcoinkernel_wrapper.h>

class TransactionView
    : public View<btck_Transaction>
    , public TransactionApi<TransactionView>

Base Classes

NameDescription
View<btck_Transaction>Non-owning view over a const C handle of type CType.
TransactionApi<TransactionView>CRTP mixin adding transaction accessors shared by the view and owning types.

Member Functions

NameDescription
TransactionView [constructor]Constructs a view over ptr.
CountInputs Returns the number of inputs.
CountOutputs Returns the number of outputs.
GetInput Returns a single input by index.
GetLocktime Returns the transaction locktime.
GetOutput Returns a single output by index.
Inputs
Outputs
ToBytes Serializes the transaction to its raw bytes.
Txid Returns the transaction id.
get Returns the borrowed C handle.

Protected Data Members

NameDescription
m_ptr The borrowed C handle.