Owning wrapper over a btck_Transaction.

Synopsis

Declared in <kernel/bitcoinkernel_wrapper.h>

Base Classes

Name

Description

Handle<btck_Transaction, btck_transaction_copy, btck_transaction_destroy>

Owning RAII handle for a copyable C object of type CType.

TransactionApi<Transaction>

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

Member Functions

Name

Description

Transaction [constructor]

Constructors

operator=

Assignment operators

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 owned C handle.

Protected Data Members

Name

Description

m_ptr

The owned C handle.

Non-Member Functions

Name

Description

CheckTransaction

Runs consensus‐level checks on a standalone transaction.

Created with MrDocs