btck::TransactionApi

CRTP mixin adding transaction accessors shared by the view and owning types.

Synopsis

Declared in <kernel/bitcoinkernel_wrapper.h>

template<typename Derived>
class TransactionApi;

Member Functions

NameDescription
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 Returns a range over all inputs.
Outputs Returns a range over all outputs.
ToBytes Serializes the transaction to its raw bytes.
Txid Returns the transaction id.

Derived Classes

NameDescription
Transaction Owning wrapper over a btck_Transaction.
TransactionView Non-owning view over a btck_Transaction.