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

Name

Description

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

Name

Description

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

Name

Description

m_ptr

The borrowed C handle.

Created with MrDocs